I have a question concerning FileHandle.
my $fh = FileHandle->new(">./test"); print $fh "Hello\n";
works just fine, however
$hashref->{"fh"} = FileHandle->new(">./test"); print $hashref->{"fh"} "Hello\n";
does not compile: "String found where operator expected"
Why?
$hashref->{"fh"}->print()
works though.
In reply to FileHandle in a Hashref by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |