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

Re: How can a user specify a input folder

by moritz (Cardinal)
on Dec 10, 2012 at 09:18 UTC ( #1008078=note: print w/replies, xml ) Need Help??


in reply to How can a user specify a input folder

I want to code my perl script to ask the user to type in the folder name, and then the script should run through all of the text files within.

Let me propose another way: let the user supply the value at the command line. That's much more convenient to use and test. You can find the command line arguments in @ARGV.

  • Comment on Re: How can a user specify a input folder

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008078]
help
Chatterbox?
[Discipulus]: if i can suggest La Reine Margot too is a great book and obviously The Count of Monte Cristo that is a chef-d'œuvre
[Discipulus]: The red sphinx is about Rechilieu, absolutely thrilling
[erix]: thanks, Discipulus - I got them lined up at gutenberg :)
[erix]: I red the musketeers and Monte Cristo but both a very long time ago (many decades ago)
[erix]: *read
[Discipulus]: dunno if a young people can well understand the deep of Montecristo

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2017-05-24 07:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?