Re: if elsif else

2001-02-14 Thread Greg Wardawy
;store_data ($customer, $asn_num, $ult_recv, $cont_num, $data); } &output_data($imptasn_file); &show_customers (); untie %all; close ASN; - Original Message - From: "Greg Wardawy" <[EMAIL PROTECTED]> To: <

RE: if elsif else

2001-02-14 Thread Mark Meyer
> What am I missing here? > > TIA > > Greg > greg.. i see you already got an answer.. you may want to adopt a different approach than one massive in-line if-else statement. it's hard to tell what you are doing with the line once you identify it - but you may want to isolate the line number

Re: if elsif else

2001-02-14 Thread Cassell . David
Greg Wardawy wrote [in part]: > this gives me Unrecognized for the lines 6 and 7: . . . . > } elsif (/^line4/) { > > #code; > >if (/^line5/) { > > #code; > > if (/^line6/) { > >#code; > > if (/^line7/) { > >#code; Umm, isn't that what it *should* do

Re: if elsif else

2001-02-14 Thread Dirk Bremer
Greg, In your code example: while () { if (/^line1/) { #code } elsif (/^line2/) { #code } elsif (/^line3/) { #code } elsif (/^line4/) { #code; if (/^line5/) { #code; if (/^line6/) { #code; if (/^line7/) { #code; } } } } elsif (/^lin

if elsif else

2001-02-14 Thread Greg Wardawy
Hello all, For the following structure of the data: Liine1 Line2 Line3 Line4 Line5a Line6a Line7a Line7b Line7c Line6b Line7d Line7e Line7f Line6c Line7g Line7h Line7i Line5b . . . Line8 this gives me Unrecognized for the lines 6 and 7: #