Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Writing It Myself, DWIM, and Expectations

by jest (Pilgrim)
on Sep 13, 2004 at 04:19 UTC ( #390494=perlmeditation: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach my $field (@fields) {
      my $value = param($field);
    ...
      next if $value eq "";
      # construct SQL or otherwise work with $value
    }
    
  2. or download this
    my %good_params =
        map { $_ => $params{$_} }
        grep { $params{$_} ne ""}
        keys %params;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://390494]
Approved by FoxtrotUniform
Front-paged by Paulster2
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (14)
As of 2014-07-23 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (150 votes), past polls