talexb has asked for the wisdom of the Perl Monks concerning the following question:
toprint redirect ( cookie => $Cookie, uri => $URL );
Can someone explain the difference?print redirect ( -cookie => $Cookie, -uri => $URL );
Another example is the login form: should there be hyphens in front of 'border', 'cellspacing' and 'cellpadding'?
I have been using CGI.pm on and off for some time, and most of the time it works like a champ. Should I be thinking that I'm passing command line options in, hence the leading hyphen?print p, startform, table ( { border => 1, cellspacing => 0, cellpadding => 2 }, Tr ( th ( "UserID:" ), td ( textfield ( USERID ) ), td ( { rowspan => 2 }, submit ( "Login" ) ) ), Tr ( th ( "Password:" ), td ( password_field ( PASSWORD ) ) ) +), endform;
This is all based on merlyn's Basic Cookie Management column.
--t. alex
but my friends call me T.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI.pm parameter format
by Joost (Canon) on Sep 12, 2002 at 13:31 UTC | |
by talexb (Chancellor) on Sep 12, 2002 at 13:37 UTC |