Shlomi Fish wrote:

On Wednesday 16 Mar 2011 17:51:19 ind...@students.itb.ac.id wrote:

if(@ARGV != 1){

1. There should be a space before the "{".

There could be, but there doesn't have to be.


     print "ARGV error \n";
     print "firstradar velx vely \n";

You should output errors STDERR - not STDOUT. Maybe use perldoc -f die
instead.

Or perldoc -f warn



John
--
Any intelligent fool can make things bigger and
more complex... It takes a touch of genius -
and a lot of courage to move in the opposite
direction.                   -- Albert Einstein

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to