develooper Front page | perl.perl5.porters | Postings from October 2003

Re: [perl #24189] Incorrect comment in perldoc strict

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
October 13, 2003 02:23
Subject:
Re: [perl #24189] Incorrect comment in perldoc strict
Message ID:
20031013111615.1dd0e99a.rgarciasuarez@free.fr
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 form

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About