Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^4: On Backwards Compatibility and Bareword Filehandles

by ikegami (Patriarch)
on Jul 19, 2020 at 12:06 UTC ( [id://11119518]=note: print w/replies, xml ) Need Help??


in reply to Re^3: On Backwards Compatibility and Bareword Filehandles
in thread On Backwards Compatibility and Bareword Filehandles

Or if barewords can no longer be used as a file handles, you could pre-declare them using

use Symbol qw( gensym ); sub FOO { state $fh = gensym(); $fh } open(FOO, ...)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-20 05:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found