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

Re^3: Inheritance and IO

by djp (Hermit)
on Jul 23, 2007 at 03:38 UTC ( #628175=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Inheritance and IO
in thread Inheritance and IO

Using a tied filehandle is the 'correct' approach as others have pointed out. It's not much work if you use the (more or less undocumented) Tie::StdHandle class in Tie/Handle.pm. Just subclass Tie::StdHandle and then implement the routines you need, probably OPEN and READLINE in your case.


Comment on Re^3: Inheritance and IO

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2015-07-03 03:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (47 votes), past polls