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

Re: Is it possible to write to STDIN ?

by zentara (Cardinal)
on Jul 21, 2014 at 10:33 UTC ( [id://1094451]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -wT
    use strict;
    ...
    read (STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
    print "Content-type: text/plain\n\n";
    print $buffer;
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    # now we can send a GET rquest somewhere
    $CGI->redirect('http://my.server.com/script.pl?' . $query);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-10-08 19:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (44 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.