Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w use strict;
    
    ...
            return \ @record;
        }
    }
    
  2. or download this
    my $searchresult = search(
       part     => $part,
    ...
       close PARTS_DB;
       return $found ? \@record : undef;
    }
    
  3. or download this
    sub search {
       ... yadda yadda yadda ...
    ...
    my @searchresult = search(... yadda yadda ...);
    
    print @searchresult ? "got it: @searchresult\n" : "nadda\n";
    
  4. or download this
    while (my $record = <DATA>)  {