in reply to Re^3: order of operations with conditionals at the end
in thread order of operations with conditionals at the end
"Undefined behaviour", "may change in the future", "don't rely on it", and "here be dragons" are all hints not to use it. But it doesn't add up to "explicitly forbidden in the docs" in my book.B<NOTE:> The behaviour of a C<my>, C<state>, or C<our> modified with a statement modifier conditional or loop construct (for example, C<my $x if ...>) is B<undefined>. The value of the C<my> variable may be C<undef>, any previously assigned value, or possibly anything else. Don't rely on it. Future versions of perl might do something different from the version of perl you try it out on. Here be dragons.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: order of operations with conditionals at the end
by AnomalousMonk (Archbishop) on Apr 04, 2012 at 21:22 UTC | |
|
Re^5: order of operations with conditionals at the end
by ikegami (Patriarch) on Apr 04, 2012 at 21:16 UTC |