in reply to perl command line arguments
You could try setting an environment variable and then accessing it in your perl command via the %ENV hash (works in tcsh shell):
_____________________
"We've all heard that a million monkeys banging on a million typewriters will eventually reproduce
the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true."
Alternatively, you could set the $arg variable at the start of your perl command once:setenv arg="ARG"; perl -ne '<your command here>'
perl -ne '$arg="ARG";<rest of your command here>'
_____________________
"We've all heard that a million monkeys banging on a million typewriters will eventually reproduce
the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true."
Robert Wilensky, University of California
|
---|
In Section
Seekers of Perl Wisdom