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

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).