[prev] [index] [next]

Calling CGI.pm Methods (cont)

CGI.pm doesn't explicitly define methods for all HMTL tags.

Instead, constructs them on-the-fly using rules about arguments.

This allows you to include arbitrary attributes in HTML tags

MethodName({-AttrName=>Value,...}, OtherArgs, ...);

If first argument is an associative array, it is converted into tag attributes.

Other unnamed string arguments are concatenated space-separated.

Methods that behave like this are called HTML shortcuts.