go ahead... be a heretic | |
PerlMonks |
Re: How scoping works in If statements?by Anonymous Monk |
on May 30, 2008 at 09:53 UTC ( [id://689174]=note: print w/replies, xml ) | Need Help?? |
Hello Prasad,
both the statments are wrong.
when you write
for compiler $x is visible outside even though it does operations like case 1. so so use braces if u want to make it part of if only.
In Section
Seekers of Perl Wisdom
|
|