|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Re: Syntax error when trying to use a hash value as a file stream specifierby LanX (Saint) |
| on Sep 03, 2022 at 11:50 UTC ( [id://11146656]=note: print w/replies, xml ) | Need Help?? |
|
classic filehandles° and indirect object syntax are a PITA constantly causing trouble. may I suggest you use the approach to call print as a direct method?
NB: I directed the output to $out vars only for demo purpose, it will work with all destinations.
Cheers Rolf °) bareword FH, glob *FH, glob-ref \*FH, ...
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||