> I want to get a file name from command line, like this:
> somecommand.pl filename

#!/usr/bin/perl -w
my $filename = shift;
print $filename;

> How I can realize it? How it realizes with several files:
> somecommand.pl file1,file2... fileN?

Arguments are stored in @ARGV, which is also @_ at the top
level.  E.g.

#!/usr/bin/perl -w
print "Argument: $_\n" foreach @ARGV;

Take care,

Jonathan Paton

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to