>>>>> "sw" == shawn wilson <ag4ve...@gmail.com> writes:

  sw> couldn't you just do something like:
  sw> die "I said two variables\n" unless #$ARGV = 2;
  sw> ?

that would be a good idea but you are off by one. you should rarely use
$#foo as it gives the last index of an array. @foo in scalar context
gives the size of the array which is usually what people want when
checking arrays.

uri

-- 
Uri Guttman  ------  u...@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to