in reply to upgrade to 5.8.4 breaks code -- how to fix?
perl -e 'BEGIN { my %x = (); }'
And in reading perldelta for version 5.8.4, the only change to how my %x = (); is handled is that the unnecessary initialization to the empty set is optimized away, which also shouldn't cause any errors.
Are you sure that those three lines, by themselves, generate the error you've described? I don't have 5.8.4 installed anywhere to confirm, but unless there's a bug in Perl, the code you presented should be just fine.
UPDATE: Ok, now that corion has confirmed it (and yes, I think it has to be related to the new optimization), who's going to submit the bug report? This code shouldn't generate an error, it's legitimate code.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: upgrade to 5.8.4 breaks code -- how to fix?
by bcrowell2 (Friar) on Jun 05, 2004 at 16:28 UTC | |
by Corion (Patriarch) on Jun 05, 2004 at 16:33 UTC | |
by bcrowell2 (Friar) on Jun 05, 2004 at 16:38 UTC |