Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: $* is no longer supported

by toolic (Bishop)
on Oct 30, 2013 at 16:57 UTC ( [id://1060395]=note: print w/replies, xml ) Need Help??


in reply to $* is no longer supported

On perl 5.10 (and later), your script should work the same with the $* as without the $*. The deprecation message is letting you know that it has no effect. So, if you want to get rid of the warning message, you can just comment out the $* line:
# $* = 1;

Note that it is a warning, not an error. Is your script working as desired on 5.10?

You could check to see if your script still works on 5.8 without $*.

The problem with the $* variable is that it is global. Once set, it will apply to all regular expressions in code executed after it is set. If there are any regexes outside of your posted code, they could be affected, too.

See also $* and perdiag

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1060395]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-03-28 16:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found