Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Putting a filename as a parameter to a perl script then reading from it in the code?

by moritz (Cardinal)
on Dec 07, 2012 at 11:31 UTC ( #1007715=note: print w/replies, xml ) Need Help??


in reply to Putting a filename as a parameter to a perl script then reading from it in the code?

The variable @ARGV contains the command line options. perlintro has examples for opening files and reading them line by line.

  • Comment on Re: Putting a filename as a parameter to a perl script then reading from it in the code?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007715]
help
Chatterbox?
[Yary]: Any monk want to point me to a post discussing style- what order to declare strict, warning, package, and the modules to "use"?

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2018-01-23 16:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (249 votes). Check out past polls.

    Notices?