Help for this page

Select Code to Download


  1. or download this
    Use of uninitialized value in pattern match (m//) at ....
    
  2. or download this
    my $_name = param('name');
    my ($name) = $_name =~ /^([[:alpha:]]+)$/ if defined $_name;
    ...
         and    defined $color
         and    defined $otherReqParameter;
    ....
    
  3. or download this
    my ($name) =          (param('name')         ||'') =~ /^([[:alpha:][:p
    +unct:][:space:]]+)$/;
    my ($color) =         (param('color')        ||'') =~ /^([[:alpha:]]+)
    +$/;
    ...
         
    # If we got here we have everything we need, untainted.
    ...