On Thu, 23 Sep 2004 14:31:16 +0200, Michael wrote:
> Jeg får denne fejl uanset om jeg har skrevet use CGI; i starten af
> mit script eller ej. Hvad gør jeg galt?
Du har glemt at læse dokumentationen til CGI-modulet:
,----
| CREATING A NEW QUERY OBJECT (OBJECT-ORIENTED STYLE):
|
| $query = new CGI;
`----
,----
| FETCHING THE VALUE OR VALUES OF A SINGLE NAMED PARAMETER:
|
| @values = $query->param('foo');
|
| -or-
|
| $value = $query->param('foo');
|
| Pass the param() method a single argument to fetch the value of the
| named parameter. If the parameter is multivalued (e.g. from multiple
| selections in a scrolling list), you can ask to receive an array.
| Otherwise the method will return a single value.
|
| If a value is not given in the query string, as in the queries
| "name1=&name2=" or "name1&name2", it will be returned as an empty
| string. This feature is new in 2.63.
|
| If the parameter does not exist at all, then param() will return undef
| in a scalar context, and the empty list in a list context.
`----
Se: <
http://search.cpan.org/~lds/CGI.pm-3.05/CGI.pm>
(Eller brug "perldoc CGI" på kommandolinien).
Mvh.
--
"Who ees thees Kählveen?" Adam Sjøgren
asjo@koldfront.dk