MrNobo1024 has asked for the wisdom of the Perl Monks concerning the following question:
This one-liner
produces the errorperl -e 'use strict; my %foo = (Bar::Baz => "qux")'
I thought => was supposed to quote barewords? Has the behaviour of this changed since 5.6? There are a few modules that do something likeBareword "Bar::Baz" not allowed while "strict subs" in use at -e line +1. Execution of -e aborted due to compilation errors.
and I had to quote __CALLER__::Attribute to get it to work on 5.8.use strict; use Attribute::Handlers autotie => { __CALLER__::Attribute => __PACKAG +E__ };
--MrNobo1024
s]]HrLfbfe|EbBibmv]e|s}w}ciZx^RYhL}e^print
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Why dosen't => quote barewords with ::?
by Abigail-II (Bishop) on Aug 09, 2002 at 09:17 UTC | |
Re: Why dosen't => quote barewords with ::?
by kvale (Monsignor) on Aug 08, 2002 at 23:29 UTC | |
Re: Why dosen't => quote barewords with ::?
by Zaxo (Archbishop) on Aug 08, 2002 at 23:59 UTC | |
by demerphq (Chancellor) on Aug 09, 2002 at 09:28 UTC | |
by Juerd (Abbot) on Aug 09, 2002 at 05:52 UTC |
Back to
Seekers of Perl Wisdom