Re: while: both syntaxes cant solve my problem

2012-03-13 Thread Shawn H Corey
On 12-03-13 12:11 PM, oxy wrote: I have a problem with the following structure: while(){$thevariable=$1 if (/variable1=(.*)/)}; Now I wanna be sure that variable1 was really set in the above statement (it could have an old value from a previous embracing loop). Then I tried: while(){if (/varia

Re: while: both syntaxes cant solve my problem

2012-03-13 Thread Jim Gibson
On 3/13/12 Tue Mar 13, 2012 9:11 AM, "oxy" scribbled: > hi all, > > I have a problem with the following structure: > > while(){$thevariable=$1 if (/variable1=(.*)/)}; > > Now I wanna be sure that variable1 was really set in the above > statement (it could have an old value from a previous em

while: both syntaxes cant solve my problem

2012-03-13 Thread oxy
hi all, I have a problem with the following structure: while(){$thevariable=$1 if (/variable1=(.*)/)}; Now I wanna be sure that variable1 was really set in the above statement (it could have an old value from a previous embracing loop). Then I tried: while(){if (/variable1=(.*)/) {$thevari