Try something like if(scalar(@ARGV) != 3) {
The above statement will execute if there is less than or greater than three command line arguments.. ~ Saran On May 18, 2:37 pm, benignb...@gmail.com (Balachandran Sivakumar) wrote: > On Wed, May 18, 2011 at 2:55 PM, <ind...@students.itb.ac.id> wrote: > > ARGV error > > firstradar velx vely > > > if(@ARGV != 3){ > > print "ARGV error \n"; > > print "firstradar velx vely \n"; > > exit(1); > > } > > From what I see, this script expects command line arguments > and expects 3 arguments. So, you should run it something like > > ./script_name 0 1 2 > > Or whatever the appropriate value is for firstradar, velx and vely. Thanks > > -- > Thank you > Balachandran Sivakumar > > Arise Awake and stop not till the goal is reached. > > Mail: benignb...@gmail.com > Blog:http://benignbala.wordpress.com/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/