in reply to Re: (5) Change directories, Print just the comments
in thread Change directories, Print just the comments

Ok, cool. Thanks for pointing these pros to using IO::File; you gave me a new module to think about using, as well as provided the reasoning behind using it so other monks can make a more informed choice.
Also you get a scalar that you can pass around to other subroutines without special treatment.
open $fh, '<', $_ or die; ... or am I missing something?

Replies are listed 'Best First'.
Re: (7) Change directories, Print just the comments
by Roger (Parson) on Dec 09, 2003 at 03:22 UTC
    Open with a scalar reference is a relatively new thing introduced to Perl (since 5.6), and earlier versions of Perl would break. IO::File is more portable and should work on older versions of Perl still out there.