On Jan 22, 2004, at 3:39 PM, wolf blaum wrote: [..]

call: scriptname.pl Universe 42 douglas 'Zappod Beblebrox'

#! /usr/bin/perl
use strict;
use warnings;
print "You called me with ", scalar @ARGV, " Arguments.\n";
if (@ARGV) {
  print " Param to script: $_\n" foreach (@ARGV);
}


My Compliments on a well done piece.

One of the stock modules most of us use is Getopt::Long
which is really good for the more complex command line optioning.
cf:
        perldoc  Getopt::Long

An Illustration:
<http://www.wetware.com/drieux/pbl/perlTrick/CommandLine/ do_get_opt_long.txt>





ciao drieux

---


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to