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

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

by finddata (Sexton)
on Mar 23, 2017 at 04:37 UTC ( [id://1185538]=note: print w/replies, xml ) Need Help??


in reply to Re: 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.
  • Comment on Re^2: How to read the input directory from command line arguments using perl?

Replies are listed 'Best First'.
Re^3: How to read the input directory from command line arguments using perl?
by haukex (Archbishop) on Mar 23, 2017 at 08:37 UTC

    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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1185538]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2024-04-19 09:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found