qball has asked for the wisdom of the Perl Monks concerning the following question:
Thank you in advance for you responses.sub getSND(){ $sql = <<END_SQL; select distinct a.send_id from perbill_doc_data a, perbill_types b where a.send_id <> b.type_name and trans_date between '010501' and '010530' END_SQL $query = &execsql($sql); if(!$print_only){ $~ = PB_TOP_SNDIDONLY; write; while (@data = $query->fetchrow) { $~ = PB_BODY_SNDIDONLY; write; } }else{ open(PB_BODY_SNDIDONLY, "> tmp/SND.DOC") or die "Can't $!\n"; #Lock File flock(PB_BODY_SNDIDONLY, 2); $~ = PB_TOP_SNDIDONLY; write PB_TOP_SNDIDONLY; $~ = PB_BODY_SNDIDONLY; write PB_BODY_SNDIDONLY while( @data = $query->fetchrow ); #Unlock file flock(PB_BODY_SNDIDONLY, 8); close (PB_BODY_SNDIDONLY); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Column distribution
by bikeNomad (Priest) on Jun 11, 2001 at 23:40 UTC | |
|
Re: Column distribution
by VSarkiss (Monsignor) on Jun 11, 2001 at 23:34 UTC | |
by qball (Beadle) on Jun 12, 2001 at 00:30 UTC | |
by VSarkiss (Monsignor) on Jun 12, 2001 at 19:00 UTC |