>>>>> "sw" == shawn wilson <[email protected]> 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 ------ [email protected] -------- http://www.sysarch.com -- ----- Perl Code Review , Architecture, Development, Training, Support ------ --------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com --------- -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
