Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: perl command line arguments

by vladb (Vicar)
on Jun 21, 2004 at 20:37 UTC ( #368548=note: print w/ replies, xml ) Need Help??


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):

setenv arg="ARG"; perl -ne '<your command here>'
Alternatively, you could set the $arg variable at the start of your perl command once:
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


Comment on Re: perl command line arguments
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (15)
As of 2014-09-30 17:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (379 votes), past polls