chinamox has asked for the wisdom of the Perl Monks concerning the following question:
Greetings Brothers,
I am finishing up some class work and I wanted to check if I was on the right path or not...
I want to use Getopt::Long to load different data sets into the program I just finished writing. I need to be able to load the files paths in the following forms:
./plc.pl < /myflies/lib/words ./plc.pl /myfiles/lib/words cat /home/programs/perl/myfiles/lib/words | ./plc.pl
My other option is to investigate using something like this:
#!/opt/bin/perl -w # #usage: ./plc.pl url # use strict; my ($url) =@ARGV; while(my $scalar = <>){ #### Main Program here #### }
So am I on the right track with either of these or are they both just a newbee barking up the wrong trees?
As always, thank you in advanced for your guidence and patience.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using Getopt::Long it input different data sets
by Hofmator (Curate) on Oct 10, 2006 at 13:20 UTC | |
by chinamox (Scribe) on Oct 10, 2006 at 14:35 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |