Coder's Guild Mailing List

Re: [PBML] Perl: Processing multiple files from the commandline

Posted by Dan Boger on 1999-11-12

you could just do the following:

Replace :

if ($ARGV[0]) {
$commandlineparms = $ARGV[0];  

&stripcr($commandlineparms); 
} ........

With:

while (defined($ARGV[0])) {
$commandlineparms = shift;  

&stripcr($commandlineparms); 
} ........

Untested code, but should work fine :)

Cheers,

Dan

Dan Boger - Georgetown Institute for Cognitive and Computational Sciences
dan@xxxxx.xxxxxxxxxx.xxx                                     ICQ: 1130750
Georgetown University Medical Center                       Washington, DC