Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
while(<DB>){ my $rec = $_; chomp($rec); ($num,$_name)=split(/,/,$rec); $num=~s/(\d)(\d\d\d\d\d)/$2/g; print "First mach $num<br>"; if($num=~/0\d{4}/g){ $num=~s/(\d)(\d\d\d\d)/$2/g; print "Second mach = $num_pal<br>"; } # exit; my $pal = <PROCPAL>; chomp($pal); ($pal_num,$appr,$e_mail,$terr)=split(/\#/,$pal);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Text Files Matching Items
by matija (Priest) on Mar 24, 2004 at 16:53 UTC | |
|
Re: Text Files Matching Items
by Happy-the-monk (Canon) on Mar 24, 2004 at 16:53 UTC | |
|
Re: Text Files Matching Items
by McMahon (Chaplain) on Mar 24, 2004 at 17:25 UTC | |
|
Re: Text Files Matching Items
by graff (Chancellor) on Mar 25, 2004 at 03:12 UTC |