Hey!
I have this code:
... my $chapter = shift; my $name = ( splitpath $chapter )[-1]; my $htmldir = catdir( qw( html ) ); $name =~ s/\.pod/\.html/; $name = catfile( $htmldir, $name ); open my $fh, '>:utf8', $name or die "Cannot write to '$name': $!\n"; print $fh; return $fh; }
And I get "GLOB(0x109ad10)" when printing "$fh" - how can I get the name of the file from $fh, not simply from "$name"
In reply to GLOB & FILE by anek77713
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |