Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: Re: CGI.pm Disillusionment

by mooseboy (Pilgrim)
on Jun 05, 2003 at 13:13 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://263309]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-20 03:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found