in reply to filehandle for close
Purely by trial and error I figure the following works:
I would love to understand why, though. It is not obvious to me from the documentation.open $files{ "foo" }, " > xyz"; print { $files{ "foo" } } "done\n"; close *{ $files{ "foo" } };
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: filehandle for close
by eyepopslikeamosquito (Archbishop) on Jan 14, 2013 at 21:56 UTC | |
Re^2: filehandle for close
by Anonymous Monk on Jan 14, 2013 at 21:48 UTC |
In Section
Seekers of Perl Wisdom