Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Perl: the Markov chain saw
 
PerlMonks  

Re: CGI.pm OO mode plain text

by shmem (Chancellor)
on Nov 21, 2006 at 04:09 UTC ( [id://585222]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to CGI.pm OO mode plain text

Should work with OO. But.. if the output doesn't show up, perhaps the print goes to a different filehandle?
open(O,">","/dev/null"); select O; my $fh = select STDOUT; warn "fileno is ",fileno($fh),"\n"; select $fh; print 'text'; __END__ fileno is 3

If you want to print to STDOUT and the fileno reported isn't 1, there's the problem.

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://585222]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.