Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: Re: Re: Errors in my (simple?) CGI Script!

by jrsmith (Pilgrim)
on Mar 15, 2002 at 22:35 UTC ( #152102=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Errors in my (simple?) CGI Script!
in thread Errors in my (simple?) CGI Script!

i've recently started assigning blocks of text/html to variables like so:
my $chunk = qq{ <b>Blah!</b><br><br> <i>Blah?</i> <u>Blah...</u> };
then i just print it.. the reason i started doing this as opposed to using heredocs is the pretty formatting; i strip out the tabs used to indent with a regex before printing.

as a side note, this seems to render pages MUCH faster than using heredocs. :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://152102]
help
Chatterbox?
[shmem]: hm. That should be "an artist's expression"
[RonW]: Happy Thanksgiving Eve
[RonW]: and no panic, here. We're staying home, safe from the frenzy in the stores
[AnomalousMonk]: choroba: It even has Rama's (relatively) high rate of spin, although I don't know if it's axial spin.
[LanX]: Rama spins?
LanX probably in my stomach

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (12)
As of 2017-11-22 16:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (327 votes). Check out past polls.

    Notices?