Hi all,
I want to introduce a hash in doc html and to press a button this hash it will to assume of prog perl and print by param keys/values.Can you help me somebody?
#!/usr/bin/perl
use strict;
use CGI;
print CGI::header();
my %disp = CGI:aram('hash');
print"<b>Welcome</b>";
print"<hr>";
my @keys = keys(%disp);
my @values1= values(%disp);
if(%disp = ~m/\(? [a-z]*[,\s]?/x){
foreach (@keys){
print "This is key $_ \n";
foreach (@values1){
print "This is value $_ \n";
}
}
}
print"<hr>";
I want to introduce a hash in doc html and to press a button this hash it will to assume of prog perl and print by param keys/values.Can you help me somebody?
#!/usr/bin/perl
use strict;
use CGI;
print CGI::header();
my %disp = CGI:aram('hash');
print"<b>Welcome</b>";
print"<hr>";
my @keys = keys(%disp);
my @values1= values(%disp);
if(%disp = ~m/\(? [a-z]*[,\s]?/x){
foreach (@keys){
print "This is key $_ \n";
foreach (@values1){
print "This is value $_ \n";
}
}
}
print"<hr>";