Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

open STDOUT to a subroutine reference?

by jandrew (Hermit)
on Nov 06, 2012 at 16:13 UTC ( #1002513=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Modern::Perl;
    print "Hello World 1\n";
    ...
            die "open failed: " . $!;
    print "Hello World 2";
    warn ref $sub_ref;
    
  2. or download this
    Hello World 1
    CODE at CodeTest.pl line 8.
    
  3. or download this
    Hello World 1
    Hello World 2 - this is really bad at CodeTest.pl line 3
    CODE at CodeTest.pl line 8.
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2014-08-20 08:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (107 votes), past polls