On Mon, 2008-03-24 at 17:46 +0530, sivasakthi wrote:
> Hi all,
> 
> How we can check the argument is passing to the running file or not?
> 
> #sample.pl 2008 03
> 
> i want to check the two arguments of 2008 & 03 is passed to sample.pl or
> not..


if( defined $ARGV[1] ) {
    die "Two arguments required\n  sample.pl  yyyy mm";
}

-- 
Ken Foskey
FOSS developer


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


Reply via email to