Iain 'Spoon' Truskett (via RT) wrote: > > I believe the original wording is wrong. It's talking about the wrong > part of the expression, or is just talking about something that's not > there.. I think the original wording talks about the {PIPE} part... looks OK to me. > --- lib/strict.pm~ 2003-10-12 18:52:02.000000000 +1000 > +++ lib/strict.pm 2003-10-12 18:54:58.000000000 +1000 > @@ -108,21 +108,21 @@ > > =item C<strict subs> > > This disables the poetry optimization, generating a compile-time error if > you try to use a bareword identifier that's not a subroutine, unless it > is a simple identifier (no colons) and that it appears in curly braces or > on the left hand side of the C<< => >> symbol. > > use strict 'subs'; > $SIG{PIPE} = Plumber; # blows up > - $SIG{PIPE} = "Plumber"; # just fine: bareword in curlies always ok > + $SIG{PIPE} = "Plumber"; # just fine: quoted string is always ok > $SIG{PIPE} = \&Plumber; # preferred formThread Previous | Thread Next