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

Re: Introsepcting the current Perl file via DATA, even w/o DATA?

by Anonymous Monk
on Feb 04, 2016 at 21:59 UTC ( #1154437=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for ( values %main:: ) {
        my $io = *{$_}{IO} or next;
    ...
            print "($name is a virtual handle)\n";
        }
    }
    
  2. or download this
    fileno of  stdin is 0
    fileno of stdout is 1
    ...
    fileno of stderr is 2
    fileno of STDERR is 2
    (ARGV is a virtual handle)
    
  3. or download this
    fileno of STDERR is 2
    fileno of  STDIN is 0
    ...
    (ARGV is a virtual handle)
    fileno of   DATA is 3
    fileno of stderr is 2
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2022-05-16 18:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (63 votes). Check out past polls.

    Notices?