Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: How was my script launched?

by Perlbotics (Archbishop)
on Jul 20, 2008 at 18:54 UTC ( [id://698928]=note: print w/replies, xml ) Need Help??


in reply to How was my script launched?

Additionally, you might get some further clues from inspecting the filename ($0) or the command line arguments (@ARGV). If your OS supports symbolic links, than aliasing your script by symlinking it might be another alternative to identify launch circumstances. E.g., if you symlink yourscript.pl to alt_name.pl and then call the latter,  $0 =~ m{/alt_name\.pl$} will render true, at least under *NIX.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://698928]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-25 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found