Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Re: CGI.pm Disillusionment

by mooseboy (Pilgrim)
on Jun 05, 2003 at 13:13 UTC ( #263309=note: print w/replies, xml ) Need Help??


in reply to Re: Re: CGI.pm Disillusionment
in thread CGI.pm Disillusionment

Just to add to what the other monks have said on the subject, this is from the CGI.pm docs:

There will be some times when you want to produce the start and end tags yourself. In this case, you can use the form start_tag_name and end_tag_name, as in:

print start_h1,'Level 1 Header',end_h1;

With a few exceptions (described below), start_tag_name and end_tag_name functions are not generated automatically when you use CGI. However, you can specify the tags you want to generate start/end functions for by putting an asterisk in front of their name, or, alternatively, requesting either "start_tag_name" or "end_tag_name" in the import list. Example:

use CGI qw/:standard *table start_ul/;

In this example, the following functions are generated in addition to the standard ones:

start_table() (generates a <TABLE> tag) end_table() (generates a </TABLE> tag) start_ul() (generates a <UL> tag) end_ul() (generates a </UL> tag)

I haven't tested it with every HTML tag, mind... ;-)

Update: here's a link to the relevant part of the CGI.pm docs (as suggested by PodMaster).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2021-06-25 09:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (135 votes). Check out past polls.

    Notices?