tomazos has asked for the wisdom of the Perl Monks concerning the following question:
ie The command-line input is
) perl myscript.pl ~/myinput/*
and myscript.pl is:
$/ = "\r"; # I'm on Mac OS X. while (<>) { do stuff with $_ };
..which concatenates all the files in the myinput directory and feeds them to my script one line at a time.
I'm using an environment which doesn't give me access to the command-line (BBEdit, a text editor), and I would like to specify that my input files for use by <> are "~/myinput/*" quickly and easily.
What is the best way to do this from inside the script itself, not using the command line?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(ar0n) Re: Moving Input Data Files into Script Proper.
by ar0n (Priest) on Jun 17, 2001 at 17:13 UTC | |
by clintp (Curate) on Jun 17, 2001 at 20:02 UTC | |
by tye (Sage) on Jun 17, 2001 at 23:24 UTC | |
by clintp (Curate) on Jun 18, 2001 at 04:45 UTC | |
|
Re: Moving Input Data Files into Script Proper.
by Zaxo (Archbishop) on Jun 17, 2001 at 20:45 UTC |