Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Distinguishing a filehandle for an in-memory string

by jrw (Monk)
on May 17, 2018 at 23:42 UTC ( [id://1214805]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    open $fh, "<", \"/etc/passwd" or die; doit_read $fh;
    open $fh, "<",  "/etc/passwd" or die; doit_sysread $fh;
    open $fh, "<",  "/etc/passwd" or die; doit_read $fh;
    
  2. or download this
    <sysread><UNDEF><>
    <read><5></etc/>
    <sysread><5><jrw32>
    <read><5><jrw32>
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 09:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found