#!/usr/bin/perl -w use CGI qw(:standard); use strict; $! = 1; print header; my $try = CGI->new(); my %hash; # tried 'my $hash = {};' too... foreach my $string ( $try->param ) { if ( $string =~ m/(\d+)_(\d+)/ ) { push @{$hash->{$1}->{$2}}, $try->param($string); } } print qq! <HTML><HEAD><TITLE></TITLE></HEAD> <P> then you have:<BR><P>$hash{12}{1} <BODY></BODY></HTML>!;
In reply to hash name not sticking? by jptxs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |