Re: [Debian]:Perl: Frage zu CGIs & SQL(DBI)
Arne P. Boettger schrieb am Samstag, den 25. Dezember 1999:
Hallo,
> > Es geht auch nicht, wenn ich
>
> foreach my $key ($q->param) {
> my $werte{$key} = $q->param($key);
> }
>
> funktioniert bei mir einwandfrei.
Ich glaube, ich habe ein ernstes Problem :-(
$ cat test.pl
| #!/usr/bin/perl
|
| use CGI;
| use strict;
| use vars qw($Name $Vorname %werte @werte);
| my $q = new CGI;
| print $q->header;
| print $q->start_html;
|
|
| foreach my $key ($q->param) {
| my $werte{$key} = $q->param($key);
| }
|
| print "$werte{'Name'} | $werte{'Vorname'}";
| print $q->end_html;
| exit 0;
$ ./test.pl
| Can't declare hash elem in my at test.pl line 12, near "} ="
| Execution of test.pl aborted due to compilation errors.
$
> Bei weiteren Fragen solltest du dich an ein Perl-Forum wenden.
Wer kennt eines? Am besten eine Mailingliste, da ich nicht mehr so gerne
im USENET verkehre.
Guten Rutsch,
Thomas
--
Thomas Bader <thomasb@trash.net>, Powered by LINUX 2.2
Infos und Tipps zu Linux, HOWTOs des DLHP <http://www.t-bader.ch/>
=> It is easier to fix Unix than to live with NT.
------------------------------------------------
Um sich aus der Liste auszutragen schicken Sie
bitte eine E-Mail an majordomo@jfl.de die im Body
"unsubscribe debian-user-de <deine emailadresse>"
enthaelt.
Bei Problemen bitte eine Mail an: Jan.Otto@jfl.de
------------------------------------------------
Anzahl der eingetragenen Mitglieder: 754
Reply to: