in reply to If condition
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" ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: If condition
by gem555 (Acolyte) on Jul 14, 2009 at 11:39 UTC | |
by jeanluca (Deacon) on Jul 14, 2009 at 11:48 UTC | |
by ashish.kvarma (Monk) on Jul 14, 2009 at 12:22 UTC |