Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Ugly code! :-(

by orkysoft (Friar)
on Mar 02, 2001 at 09:51 UTC ( #61746=note: print w/ replies, xml ) Need Help??

in reply to Re: Re: Perl & Personal Web Server
in thread Perl & Personal Web Server

I'd do it like this:

#!/usr/bin/perl -w use CGI; my $q = new CGI; print $q->header, $q->start_html, $q->start_table; # etc
Okay, so actually this requires more finger acrobatics, but at least it looks a lot better to me. But then, 'an old version of Perl' might very well mean Perl 4, which doesn't have OO. (But that's before my time, I believe I've just missed my first Perl anniversary ;-)

Comment on Ugly code! :-(
Download Code
Replies are listed 'Best First'.
Re: Ugly code! :-(
by Anonymous Monk on Mar 02, 2001 at 10:46 UTC

    Of course it looks much better that way, orkysoft. Not to take any points away from beauty, the point was be 'verbose' in reminding beginners to 'use CGI'.

    A bit of (I'd hoped) useful (but dubitable) humor, you see. :-)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2015-11-28 20:31 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (744 votes), past polls