Re: [Perl-unix-users] Command line arguments?

2002-09-11 Thread Colin Foran
try the diamond operator. (<>) it accesses argv. $a = <> cheers ___ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: [Perl-unix-users] Command line arguments?

2002-09-11 Thread Merijn van den Kroonenberg
have a look at the use Getopt::Long; module, it handles this pretty nicely.   example:   use Getopt::Long;   &GetOptions("source=s" => \$sourcedir,"help" => \$help);   if($help){  print "commandline parameters:\n";  print "  -help   : this help\n";  print "  -source    : source d

[Perl-unix-users] Command line arguments?

2002-09-11 Thread THOMAS,ANN \(Non-HP-Singapore,ex1\)
Thankyou for all of your suggestions regarding copying a file. One more question : Is it possible to pass command line arguments while executing a perl program? In other words, can I pass a number as argument along with calling the program, instead of asking the user to input the number at t