in reply to Using an undefined value as a hashref
The declared variable is not introduced (is not visible) until after the current statement. Thus, my $x = $x; can be used to initialize a new $x with the value of the old $x, and the expression my $x = 123 and $x == 123 is false unless the old $x happened to have the value 123 .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using an undefined value as a hashref
by ikegami (Patriarch) on Sep 10, 2005 at 04:04 UTC | |
by phaylon (Curate) on Sep 10, 2005 at 20:13 UTC | |
|
Re^2: Using an undefined value as a hashref
by talexb (Chancellor) on Sep 09, 2005 at 21:16 UTC |