Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

How to subclass IO::Handle to properly get a low level file handle without having a file or memory?

by Pickwick (Beadle)
on Nov 02, 2016 at 10:49 UTC ( [id://1175122]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub fdopen {
        @_ == 3 or croak 'usage: $io->fdopen(FD, MODE)';
    ...
        open($io, _open_mode_string($mode) . '&' . $fd)
        ? $io : undef;
    }
    
  2. or download this
    package ReadingHandle;
    
    ...
    }
    
    1;
    

Log In?
Username:
Password:

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

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

    No recent polls found