in reply to Re^3: Curious result of using "my ... if ..."
in thread Curious result of using "my ... if ..."
I don't see why this should be an error. Just as
could be semantically equivalent tomy $x = 5 if $t;
thenmy $x; $x = 5 if $t;
could be semantically equivalent tomy $x if $t;
If that throws a warning, then, fine. It certainly shouldn't be an error (unless, of course, you've asked that this type of warning be converted to an error).my $x; $x if $t;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Curious result of using "my ... if ..."
by blazar (Canon) on May 16, 2007 at 15:02 UTC | |
by jdporter (Paladin) on May 16, 2007 at 16:06 UTC | |
by blazar (Canon) on May 16, 2007 at 19:06 UTC |