On 2011-03-16 17:13 +0100, Olof Johansson wrote:
> 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?

My brain fooled me into thinking it was a == instead of !=. What you know 
check is if @ARGV is not 1. I don't know why you would do this.

-- 
- Olof Johansson
-  www:          http://www.stdlib.se/
-  {mail,xmpp}:  o...@ethup.se
-  irc:          zibri on Freenode/OFTC/IRCnet/...
--

Attachment: signature.asc
Description: Digital signature

Reply via email to