in reply to Scope of Filehandle inside Subroutine?

Also it's highly recommended to check open result. Like this:

open my $fh, ">>", "/my/directory/logfile-" . $split[0] or die $!; #op +en our new daily file

Replies are listed 'Best First'.
Re^2: Scope of Filehandle inside Subroutine?
by SituationSoap (Acolyte) on Aug 03, 2009 at 12:38 UTC
    Thanks for the reminder. The full service-level code does this, but the short mock-up which I wrote for this post does not, because my goal for it was an example which would show code relevant to the question and only the question for this post.