try the diamond operator. (<>)
it accesses argv.
$a = <>
cheers
___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
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
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