Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Why don't file handles have sigils?

by flowdy (Scribe)
on Jul 13, 2014 at 12:09 UTC ( [id://1093427] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    use strict;
    sub FH () { open my $fh, '>', '/tmp/testfile.txt'; $fh }
    eval q{ print FH "Hello world!\n"; } or warn "Doesn't work - $@";
    print {FH} "This works";