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, [email protected] (Balachandran Sivakumar)
wrote:
> On Wed, May 18, 2011 at 2:55 PM, <[email protected]> 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: [email protected]
> Blog:http://benignbala.wordpress.com/
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/