Try it with these pragmas :
use strict; use warnings;
Update:
You may have a look at the ternary operator in
perlop
my $var = 1; print ($var ? 'yes' : 'no');
hth,
PooLpi
In reply to Re: strange behaviour in perl ..please explain
by poolpi
in thread strange behaviour in perl ..please explain
by perlplayer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |