Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: print htmlcode issue

by mce (Curate)
on Apr 19, 2002 at 11:53 UTC ( [id://160503]=note: print w/replies, xml ) Need Help??


in reply to print htmlcode issue

Hi,

I don't know what your skill level is in perl, so I'll try to be general.

print is a function which prints to the selected filehandle, by default STDOUT and returns true or false

A way to actually print something into a variable is to use sprintf.

BUT..., I guess your design isn't completely what is should be. Start by seperating the input to the output, and do something like this:

$STDOUT_OVERRIDE_VARIABLE= <<HTMLCODE; ZXCZXC zxcZXCzx zxczxczxc zxczxczxzx HTMLCODE print STDOUT $STDOUT_OVERRIDE_VARIABLE;
or change the STDOUT filehandle to something else using open.

Just my 0.02$ worth
---------------------------
Dr. Mark Ceulemans
Senior Consultant
IT Masters, Belgium

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-18 03:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found