develooper Front page | perl.perl5.porters | Postings from June 2009

[PATCH-DOC] Re: [perl #64180] $*'s entry in perldiag assumes thereader already knows what it did

Thread Previous | Thread Next
From:
Bram
Date:
June 28, 2009 02:51
Subject:
[PATCH-DOC] Re: [perl #64180] $*'s entry in perldiag assumes thereader already knows what it did
Message ID:
20090628115132.9s2exttiio0w00cg@horde.wizbit.be
Citeren "naesten@gmail.com (via RT)" <perlbug-followup@perl.org>:
> -----------------------------------------------------------------
>
> I got this warning when running a script that had presumably gone
> unused for some time:
>
> $* is no longer supported at ./src/doc/DANG/DANG_c.pl line 402.
>
> Looking it up in perldiag, I found:
[...]
>
> But that still left me without much clue as to how what $* actually
> did relates to "//m" and "//s" or how to update old code that used it.

Attached is a patch that updates the documentation of $* in perldiag.

Old:

$* is no longer supported
     (S deprecated, syntax) The special variable $*, deprecated in  
older perls, has been removed as of 5.9.0 and is no longer supported.  
You should use the "//m" and "//s" regexp modifiers instead.


New:

$* is no longer supported
     (S deprecated, syntax) The special variable $*, deprecated in  
older perls, has been removed as of 5.9.0 and is no longer supported.  
In previous versions of perl the use of $* enabled or disabled  
multi-line matching within a string.

     Instead of using $* you should use the "/m" (and maybe "/s")  
regexp modifiers. (In older versions: when $* was set to a true value  
then all regular expressions behaved as if they were written using  
"/m".)


Best regards,

Bram


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