- or download this
# updated -- davorg noticed that $-> ... should be $_=>
my %input = map { $_=>$cgi->param($_) } $cgi->param();
- or download this
CGI::ReadParse();
# input values now in hash named "%in"
- or download this
foreach my $key (keys %input) {
$input{$key} =~ tr/*//d;
# or whatever makes sense
}
- or download this
perl -e 'print "How sweet does a rose smell? "; chomp ($n = <STDIN>);
+$rose = "smells sweet to degree $n"; *other_name = *rose; print "$oth
+er_name\n"'