in reply to How scoping works in If statements?

How about:
do { my $x = 5 } if (1);
The best/worst of both worlds? :-)

Impossible Robot