in reply to Re^2: Stupid If Question
in thread Stupid If Question
Three variables were defined, one in each block. (Blocks which aren't even mutually exclusive, I might add.) A fourth variable doesn't magically become defined elsewhere as a result. I believe you want
my $var; if (...) { $var = ...; } elsif (...) { $var = ...; } else { die; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Stupid If Question
by ig (Vicar) on Aug 19, 2009 at 07:49 UTC | |
by ikegami (Patriarch) on Aug 19, 2009 at 14:44 UTC |