http://www.perlmonks.org?node_id=538865


in reply to Re: Regex Optimization Question
in thread Regex Optimization Question

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.

Replies are listed 'Best First'.
Re^3: Regex Optimization Question
by ikegami (Patriarch) on Mar 23, 2006 at 21:54 UTC
    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).