[lug] Perl Help
John Hernandez
John.Hernandez at noaa.gov
Thu Oct 4 17:08:48 MDT 2001
The $0 predefined variable should hold that information.
See perlvar(1)
-John
Kyle Moore wrote:
>
> If I have two symbolic links (a.pl and b.pl) that point to c.pl how can I
> tell how the script was called? In c.pl I need to be able to tell if a.pl,
> b.pl or c.pl was typed in at the command line.
>
> I know I could get the pid and then match the last column but I was
> looking for something better than a hack. Any ideas?
>
> ---
> Kyle Moore
>
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
--
- John Hernandez - Network Engineer - 303-497-6392 -
| National Oceanic and Atmospheric Administration |
| Mailstop R/OM12. 325 Broadway, Boulder, CO 80305 |
----------------------------------------------------
More information about the LUG
mailing list