Help for this page

Select Code to Download


  1. or download this
    if($mystring){
        dosumpton(split(/\./, $mystring));
    } elsif (not defined $mystring){
    ...
    } else {
        # Something went wrong and we should be notified about it
    }
    
  2. or download this
    my @args = split /\./, $mystring;
    pop @args while (@args and !$args[-1]);
    dosumpton(@args);