It might just be the norm (and as yet I haven't encountered it in my perl travels ) but this seems strange to me and is also annoying. I am writing a sub-routine and want to check the 2 args I pass to it e.g.:<br><FONT FACE=monospace><br>#!/usr/bin/perl<br><br>$param = 2;<br>&check_params($param);<br><br>sub check_params<br>{<br> if ($_[0] gt "10"
<br> {<br> print "Perl thinks $_[0] is greater than 10\n";<br> }<br>}</font><br><br>And when this run I get the line:<br><font color=red><FONT FACE=monospace><br><298-> ./paramtest.pl<br>Perl thinks 2 is greater than 10<br><299-><br></font></font><br><br>What's going on?<br><br>Cheers<br>Loon