Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 ( #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 (Chancellor) 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
Node Status?
node history
Node Type: note [id://1185538]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2019-12-11 01:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?