in reply to Re: searching several files for a string at one time
in thread searching several files for a string at one time
but how do I make it so the users can select the directory when the programme is ran?One way is to pass it in on the command line (see shift):
use strict; use warnings; my $directory = shift; print "dir=$directory\n"; # just for debug
Run your program as:
$ ./838783.pl /foo/bar dir=/foo/bar
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: searching several files for a string at one time
by daggy (Novice) on May 06, 2010 at 19:52 UTC |