[thelist] More perl(s)
Steve Cook
sck at biljettpoolen.se
Mon Aug 21 03:03:24 CDT 2000
It will have a tiny nominal effect on compilation speed, but a much greater
effect on "ease of programming"! Rather than a hit on the server, each print
statement is a slight hit on the compiler, but the differens between the two
should make no discernable difference to program execution speed except in
extreme circumstances.
Use print <<EOF; as a way of being able to create larger chunks of print
output at a time, without having to worry about loads of print statements-.
It makes life easier for you - but remember that as always in perl - there's
more than one way to do it! It's a style a preference question :-)
.steve
----------------------------------
WapWarp - http://wapwarp.com
Wap-Dev - http://www.wap-dev.net
Cookstour - http://cookstour.org
----------------------------------
> -----Original Message-----
> From: Adrian Fischer [mailto:adrian at logo-logic.com]
> Sent: den 21 augusti 2000 09:54
> To: The List
> Subject: [thelist] More perl(s)
>
>
> Thanks Anthony for clearing up the $variable thing for me. It works a
> treat.
>
> Got another one for you though:
> The script I have has a gazillion "print" statements in it. I have
> progressively gone through it and started to rewrite it and use print
> <<"EOF"; to encompass complete pages of outputted
> <html>. Is this supposed to make the script faster or just
> ease up the
> workload for the server. I realise that every iteration of
> "print" is a hit
> on the server (at least that's what I thought) so how does
> getting rid of
> lots of them impacted on the compilation of the script as far
> as the viewer
> is concerned?
>
> Thanks again
>
>
> Adrian Fischer
>
More information about the thelist
mailing list