in reply to Re^3: the variable is lost
in thread the variable is lost

i have update my full code ^_^
it is only comment

Replies are listed 'Best First'.
Re^5: the variable is lost
by davido (Cardinal) on Mar 09, 2012 at 08:32 UTC

    See my update above, and implement the advice by applying the following change:

    foreach my $filename ( $a, $b ) { open my $fh, '<', $filename or die $!;

    Dave