in reply to Re: My first USEFUL script!
in thread My first USEFUL script!

Most appreciated :)
The rating scale tends to be easy use for the extreme ends of the scale, which is what I was concerned with ;) Thank you for looking this over!!

Replies are listed 'Best First'.
Re^3: My first USEFUL script!
by ikegami (Patriarch) on Mar 05, 2008 at 06:51 UTC
    Explicitly saying $_ is to be avoided when possible since you might as well as a meaningful variable name instead. However, that's obviously not the case when map/grep sets $_ for you.
Re^3: My first USEFUL script!
by Tanktalus (Canon) on Mar 05, 2008 at 14:46 UTC

    glob is more clear in general. For example, what does <FILE> do? Does it read a line (or all lines in list context) from the global filehandle 'FILE'? Or does it do a glob of 'FILE' in the current working directory? How about <$fh>? If $fh is "/usr/bin/perl*"? How about if $fh is an IO::File object? Or a reference to a global filehandle? If you want a glob, just use the glob function. That's what the <> does under the covers anyway.

    As for "stuff being weird" - you may not notice for 6 months... and by then you'll have forgotten that you replaced the system perl, and will beat your head against a wall trying to fix it ;-)