if ( $count >= $amount ){
print "count is greater than or equal to 10";}
else {
print "count is less than 10";}
but instead of the print function you can call your respective subroutines.
<edited cuz I had my operator backwards :) - thanks Damian>
[edited by: oilman at 11:59 pm (utc) on July 24, 2003]
== equality
!= inequality
< less than
> greater than
<= less than or equal
>= greater than or equal
Perl Builtin operators and functions [perldoc.com]
i will go for: <=
that where what i was looking for ...
i hope it works ..
so Damian my code should be:
$amount = "10";
if ($count <= $amount){ &next}
is this correct?
thx both
its the little things that count ;-) like <=
thx for the link its very usefull