- or download this
01 Joe
02 Ed
03 Sam
04 Wendy
- or download this
yadda 01 abc
yadda 03 sss
...
yadda 02 azdfbc
yadda 04 azdfbc
yadda 04 abdc
- or download this
foreach (@transactions) { #there are dozens of employee numbers…
if ($_ eq 01) { push (@joe , $_) ; }
...
if ($_ eq 04) { push (@sam , $_) ; }
if (no others) { push (@unregistered , $_) ; }
}
- or download this
foreach (@transactions) {
push (@the_correct_employee’s_array_based_on_number , $_) ;
}