4.11. cgi

4.11.1. Summary

Parameters: name

Positional parameters in same order.

Pass attribute hash as last to subroutine: no

Must pass named parameter interpolate=1 to cause interpolation.

Invalidates cache: YES

Called Routine:

ASP-like Perl call:

    $Tag->cgi(
        {
         name => VALUE,
        }
    )

 OR

    $Tag->cgi($name);
    [cgi name]
Parameters Description Default
name   DEFAULT_VALUE
Attributes Default
interpolate (reparse) No
Other_Charactreristics  
Invalidates cache YES
Container tag No
Has Subtags No
Nests Yes

Tag expansion example:

   [cgi name]
---
   TAGRESULT

ASP-like Perl call:

   $Tag->cgi(  { name => VALUE_name
}, $body  );

or similarly with positional parameters,

    $Tag->cgi(name, $attribute_hash_reference, $body);

4.11.2. Description

Displays the value of a CGI variable submitted to the current page. This is similar to [value ...], except it displays the transitory values that are submitted with every request.

For instance, if you access the following URL:

        http://VENDURL/pagename?foo=bar

bar will be substituted for [cgi foo].

This is the same as $CGI->{foo} in embedded Perl.

4.11.2.1. name