Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Regex Optimization Question

by ikegami (Patriarch)
on Mar 23, 2006 at 19:59 UTC ( [id://538843]=note: print w/replies, xml ) Need Help??


in reply to Regex Optimization Question

#/usr/bin/perl -w
should be
#!/usr/bin/perl -w

You're -w is being ignored because of the missing !.

Replies are listed 'Best First'.
Re^2: Regex Optimization Question
by gawatkins (Monsignor) on Mar 23, 2006 at 20:57 UTC
    Thank you, I lost my line during the cut/paste excercise and had to retype it. The -w is equivalent to the use warnings; isn't it. I often just leave the #! line out from my win32 scripts.

    Thank you,
    Greg W.
      It's not quite the same. -w is actually equivalent to BEGIN { $^W = 1; }. There biggest difference is that -w will affect included modules, whereas use warnings; only affects the current scope (block or file).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-03-29 09:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found