in reply to Re: Re: Disillusionment
in thread Disillusionment

Just to add to what the other monks have said on the subject, this is from the 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 docs (as suggested by PodMaster).