Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: How to read the input directory from command line arguments using perl?

by haukex (Chancellor)
on Mar 23, 2017 at 08:37 UTC ( #1185570=note: print w/replies, xml ) Need Help??


in reply to Re^2: How to read the input directory from command line arguments using perl?
in thread How to read the input directory from command line arguments using perl?

My query is this script is here where are you taking project.txt as your input in the above code.

Why while is empty without considering and input file? (source)

You can read about the magic <> operator and its use in while loops in I/O Operators. In the code that bart posted, you would provide project.txt either on the command line, as in "perl script.pl project.txt", or by feeding it into the script's STDIN, as in "cat project.txt | perl script.pl".

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2020-02-28 22:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (127 votes). Check out past polls.

    Notices?