better than just printing out said message on spot? This is of course regarding a much bigger toPrint message, with a much longer text. Secondly - is there a limit on home much a string like toPrint can hold? Can I spam toPrint with, let's say: 20000 lines? Is this even a good idea, or is there a better way ? Appreciate any help O, great monks. Mano.my toPrint=""; if(...) $toPrint .= "Error message1\n" if(...) $toPrint .= "Error message2\n" if ($toPrint) print $toPrint;
In reply to Performance In Perl by Mano_Man
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |