in reply to Re: How scoping works in If statements?in thread How scoping works in If statements?
use strict; use warnings; my $x = (0) ? 5 : undef; my $x = 42; __END__ "my" variable $x masks earlier declaration in same scope [download]