vit has asked for the wisdom of the Perl Monks concerning the following question:
I cannot just move these sub calls to another place because of these variables which are defined at a specific place of the code.sub print_1 { my $text = shift; print <<END; <p> $text </p> <form ...... </form> END }
Any thoughts..... .... ## instead of print_1($text); ## I want to somehow $string .= ## results of print_1($text) ....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Collect prints to a string
by toolic (Bishop) on Apr 23, 2011 at 18:46 UTC | |
|
Re: Collect prints to a string
by wind (Priest) on Apr 23, 2011 at 19:14 UTC | |
|
Re: Collect prints to a string
by InfiniteSilence (Curate) on Apr 23, 2011 at 17:58 UTC | |
|
Re: Collect prints to a string
by mikeraz (Friar) on Apr 23, 2011 at 17:34 UTC | |
by vit (Friar) on Apr 23, 2011 at 17:46 UTC |