in reply to Is your module clobbering predefined variables?

Programming Perl, 3rd Edition includes a nice little module that you might want to look at. It's called Underscore and you call it like: no Underscore; It simply warns you if you try to use $_ without localizing it.

Replies are listed 'Best First'.
Re^2: Is your module clobbering predefined variables? (keeper!)
by Aristotle (Chancellor) on Apr 14, 2003 at 19:27 UTC
    Cool! That's one for the debugging toolkit.. throw it at misbehaving scripts for a quick check, much like warnings and strict.

    Makeshifts last the longest.

Re: Re: Is your module clobbering predefined variables?
by Mr. Muskrat (Canon) on Apr 14, 2003 at 19:37 UTC

    I started searching and wandered upon a cool link. Tom Christiansen posted the source for Underscore.pm as well as a test script (both of which appear in the Camel).

    Update! bikeNomad posted a similar one here and says it's from the Perl Cookbook.