Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Opening files in 5.004 and 5.8

by gaal (Parson)
on May 11, 2007 at 21:27 UTC ( #615017=note: print w/replies, xml ) Need Help??

in reply to Opening files in 5.004 and 5.8

Lexical filehandles were introduced in 5.6, IIRC. You can say

my $handle = \*RPT;

and pass it to a subroutine in versions prior to that, though. close and friends work with that.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://615017]
[stevieb]: shmem: from perlsub: "Since Perl 5.16.0, the __SUB__ token is available under use feature 'current_sub' and use 5.16.0 ."
[shmem]: stevieb: thanks! new thing learned, done for today ;-)
[stevieb]: hahaha! Some days I wish I could quit after learning one new thing. Often that happens before I'm one my first coffee ;)
[MidLifeXis]: OHHHH. Mea culpa - I read that as coderef (facepalm)
[stevieb]: mlx: That's easy to have done in that context. For those who don't know, it converts itself into the current sub name, much like __PACKAGE__ translates into the current package name (or class)

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (12)
As of 2017-05-24 17:32 GMT
Find Nodes?
    Voting Booth?