Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1093427]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-19 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found