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
open(my $fh, '>', $path) || die $!;
my_sub($fh);
Can my_sub() somehow extrapolate $path from $fh?
© Stack Overflow or respective owner