Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Collect prints to a string

by mikeraz (Friar)
on Apr 23, 2011 at 17:34 UTC ( [id://900984]=note: print w/replies, xml ) Need Help??


in reply to Collect prints to a string

You mean something like:

sub print_1 { my $text = shift; return <<EOT; <p> $text </p> <form> form stuff </form> EOT }
???


Be Appropriate && Follow Your Curiosity

Replies are listed 'Best First'.
Re^2: Collect prints to a string
by vit (Friar) on Apr 23, 2011 at 17:46 UTC
    "return" will need to modify subs which I do not want to do.
    Probably I do not even need to write return because a default return will work, like $string .= print_1($text); ?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-25 16:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found