Eduard Bloch schrieb am Donnerstag, den 23. Dezember 1999: Hallo,
> Und wer oder was hindert dich daran, eine andere Variable statt $_ zu > verwenden? Habe ich bereits ausprobiert. Geht allerdings nicht. Habe auch nochmals die Manpages gewälzt, allerdings nichts gefunden :-( > foreach $key (keys %HASH) { > my $werte{$key} = $q->param($key); > } > print $werte{'Name'}." | ".$werte{'Vorname'}; Also, noch ein zweiter Versuch: $ 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; | my @keys = $q->param; | foreach my $key (@keys) { | | my $werte{$key} = $q->param($key); | | } | print "$Name | $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. $ perl --version | This is perl, version 5.005_02 built for i586-linux | [...] $ Es geht auch nicht, wenn ich | my @keys = $q->param; | foreach my $key (@keys) { | my ${$key} = $q->param($key); | } nehme (gleiche Meldung wie oben). Hat noch jemand einen Tipp? Frohe Festtage, Thomas -- Thomas Bader <[EMAIL PROTECTED]>, Powered by LINUX 2.2 Infos und Tipps zu Linux, HOWTOs des DLHP <http://www.t-bader.ch/> => PGP-Key available; mailto <[EMAIL PROTECTED]> (automated reply). ------------------------------------------------ Um sich aus der Liste auszutragen schicken Sie bitte eine E-Mail an [EMAIL PROTECTED] die im Body "unsubscribe debian-user-de <deine emailadresse>" enthaelt. Bei Problemen bitte eine Mail an: [EMAIL PROTECTED] ------------------------------------------------ Anzahl der eingetragenen Mitglieder: 755