in reply to Re^2: closing multiple filehandles with one command
in thread closing multiple filehandles with one command

$hash{ $_ }->close for keys %hash;
Or simpler to ask Perl for what you really want:
$_->close for values %hash;

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^4: closing multiple filehandles with one command
by phaylon (Curate) on Aug 09, 2005 at 16:12 UTC
    Definitly your point.

    Ordinary morality is for ordinary people. -- Aleister Crowley
A reply falls below the community's threshold of quality. You may see it by logging in.