Help for this page

Select Code to Download


  1. or download this
    # updated -- davorg noticed that $-> ... should be $_=>
    my %input = map { $_=>$cgi->param($_) } $cgi->param();
    
  2. or download this
    CGI::ReadParse();
    # input values now in hash named "%in"
    
  3. or download this
    foreach my $key (keys %input) {
     $input{$key} =~ tr/*//d;
     # or whatever makes sense
    }
    
  4. 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"'