Hi Indra, On 2011-03-16 22:51 +0700, [email protected] wrote: > if(@ARGV != 1){ > print "ARGV error \n"; > print "firstradar velx vely \n"; > exit(1); > }
...
> I got this error message :
> ARGV error
> firstradar velx vely
This is your output if the number of arguments isn't what you
expected. Guessing from
print "firstradar velx vely \n";
you probably want to change
if(@ARGV != 1){
to
if(@ARGV != 2){
as @ARGV is a list and lists in scalar context is how many elements it
contains. Makes sense?
--
- Olof Johansson
- www: http://www.stdlib.se/
- {mail,xmpp}: [email protected]
- irc: zibri on Freenode/OFTC/IRCnet/...
--
signature.asc
Description: Digital signature
