|Pathologically Eclectic Rubbish Lister|
Re: Problem in command line arguementsby BrowserUk (Pope)
|on Mar 23, 2012 at 06:55 UTC||Need Help??|
Is there any variable which stores the parameter passed before the actual script name
No. That information is not available anywhere within your perl script.
When you type the command line sudo perl myscript.pl the following steps occur:
Perl is never aware of the original first argument.
However, there are a couple of approaches you might use to discover it:
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.