Sri wrote:
Hi - I have just started with Perl and would need your help on this.
Hello,
I am trying to write a program which expects two strings(arguments) from the end user (no less, no more) and I would like to check if the end-user did pass only two arguments.
@ARGV == 2 or die "usage: $0 string1 string2\n"; John -- Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. -- Albert Einstein -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/