Can I find a filename from a filehandle in Perl?

Posted by sh-beta on Stack Overflow See other posts from Stack Overflow or by sh-beta
Published on 2010-05-11T17:48:47Z Indexed on 2010/05/11 17:54 UTC
Read the original article Hit count: 189

Filed under:
|
|
open(my $fh, '>', $path) || die $!;
my_sub($fh);

Can my_sub() somehow extrapolate $path from $fh?

© Stack Overflow or respective owner

Related posts about perl

Related posts about filehandle