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