Rick Delaney via RT wrote: > On Apr 20 2007, Colin Robertson wrote: > > Also, as I mentioned earlier, I'm still seeing it on 5.8.8: > > Sorry, I misread that post. You also said you checked %INC. Would > you > mind checking again? Try this: > > perl -we 'use Once; printf "%6d: %s\n", -s, $_ for sort values > %INC;' > > With 5.8.8 I get: > > Subroutine Once::foobar redefined at /usr/share/perl/5.8/Exporter.pm > line 65. at Once.pm line 5 > 4112: /usr/share/perl/5.8/Carp.pm > 5747: /usr/share/perl/5.8/Carp/Heavy.pm > 2218: /usr/share/perl/5.8/Exporter.pm > 3975: /usr/share/perl/5.8/base.pm > 599: /usr/share/perl/5.8/strict.pm > 1149: /usr/share/perl/5.8/vars.pm > 13018: /usr/share/perl/5.8/warnings.pm > 732: /usr/share/perl/5.8/warnings/register.pm > 103: Bar.pm > 103: Foo.pm > 65: Once.pm > > Probably the last 3 will be different because of cut-and-paste > whitespace differences. colinr@pandora~/projects/exporter-bug $ perl5.8.8 -we 'use Once; printf "%6d: %s\n", -s, $_ for sort values %INC;' 8840: /opt/csw/share/perl/5.8.8/Carp.pm 14419: /opt/csw/share/perl/5.8.8/Exporter.pm 5488: /opt/csw/share/perl/5.8.8/base.pm 3292: /opt/csw/share/perl/5.8.8/strict.pm 2358: /opt/csw/share/perl/5.8.8/vars.pm 15879: /opt/csw/share/perl/5.8.8/warnings.pm 1023: /opt/csw/share/perl/5.8.8/warnings/register.pm 101: Bar.pm 101: Foo.pm 63: Once.pm oh. Very different. ok, perhaps time to consider that this 5.8.8 installation is a somewhat dodgy. It's actually similar, though not quite identical, to our 5.8.7 installation: colinr@pandora~/projects/exporter-bug $ perl -we 'use Once; printf "%6d: %s\n", -s, $_ for sort values %INC;' 8840: /usr/local/lib/perl5/5.8.7/Carp.pm 14419: /usr/local/lib/perl5/5.8.7/Exporter.pm 5488: /usr/local/lib/perl5/5.8.7/base.pm 3292: /usr/local/lib/perl5/5.8.7/strict.pm 2358: /usr/local/lib/perl5/5.8.7/vars.pm 15793: /usr/local/lib/perl5/5.8.7/warnings.pm 1014: /usr/local/lib/perl5/5.8.7/warnings/register.pm 101: Bar.pm 101: Foo.pm 63: Once.pm So at this stage it looks like it's something that may well be fixed in 5.8.8 and it may just be that our 5.8.8 installation is borked for one reason or another. It doesn't appear to be the "no warnings 'category' works correctly with -w" fix, since the problem is still there with 'use warnings' at the start under 5.8.7. But the next thing to do is for me to investigate this 5.8.8 installation to see if it's unhealthy. Thanks to all of you for your help. -- Colin Robertson Software Engineer, Vision (Factual & Learning) BBC Future Media & Technology 2507, White City T: 0208 752 7295 http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this.Thread Previous