Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

muba's scratchpad

by muba (Priest)
on Jun 01, 2004 at 18:05 UTC ( #358330=scratchpad: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Line 20-24
    my $year   = $cgi->param('year')   ? encode_entities($cgi->param('year
    +'),   '<>"') : '';
    ...
    my $genre  = $cgi->param('genre')  ? encode_entities($cgi->param('genr
    +e'),  '<>"') : '';
    my $source = $cgi->param('source') ? encode_entities($cgi->param('sour
    +ce'), '<>"') : '';
    my $title  = $cgi->param('title')  ? encode_entities($cgi->param('titl
    +e'),  '<>"') : '';
    
  2. or download this
    # How I'da dunnit:
    my %param = map {
    ...
          : ()
        } qw(year media genre source title);
    
  3. or download this
    # Line 33-39:
    if ( $year || $media || $genre || $source || $title ) {
    ...
      push @selections, qq($genre)  if $genre;
      push @selections, qq($source) if $source;
      ...
    
  4. or download this
    # How I'da dunnit:
    if (keys %param) {
      my @selections = values %param;
      ...
    

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2016-09-29 01:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (545 votes). Check out past polls.