Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Problem with tie *STDIN, 'IO::Scalar', \$text;

by Rudif (Hermit)
on Apr 28, 2001 at 23:50 UTC ( [id://76409]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my $podfile = "some.pod";
        my $scalar = '';
    ...
        podselect $podfile;    # reads form $podfile, writes to STDOUT
        untie *STDOUT;
        # now $scalar contains the pod from $podfile
    
  2. or download this
        my $scalar = "some pod text";
        tie *STDIN, 'IO::Scalar', \$scalar;
        pod2html;
        untie *STDIN;
        # reads from 'real' STDIN, not from $scalar
    
  3. or download this
    
    #! perl -w
    ...
    }
    
    __END__
    

Log In?
Username:
Password:

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

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

    No recent polls found