at the beginning of you program. This is the ideause strict ; use warnings ;
which doesn't print 10. But this does{ my $var = 10 ; } print "$var\n" ;
Hope this helps!my $var ; { $var = 10 ; } print "$var\n" ;
In reply to Re: If condition
by jeanluca
in thread If condition
by gem555
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |