Or simpler to ask Perl for what you really want:$hash{ $_ }->close for keys %hash;
$_->close for values %hash;
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to Re^3: closing multiple filehandles with one command
by merlyn
in thread closing multiple filehandles with one command
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |