perl_krish has asked for the wisdom of the Perl Monks concerning the following question:
Hi all
Is there a workaround for this. I am trying to decode a logic in the else block and if it passes then i dont want it exit out of the loop but go to Line 12. Is there a workaround for this?
Please let me know .. I have attached the code below
Krishnar
1: while (<READ_FILE>) { 2: if ($cur_code == $area_code) { 3: //Some logic here 4: } 5: else{ 6: $cur_code = $area_code; 7: if($first_time == 1){ 8: $first_time = 0; 9: last ; 10: } 11: } 12: print "Hello"; 13: }
Edited 2004-08-18 by mirod: added <code> and <p> tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Question about last statement
by ccn (Vicar) on Aug 18, 2004 at 18:30 UTC | |
|
•Re: Question about last statement
by merlyn (Sage) on Aug 18, 2004 at 18:54 UTC | |
|
Re: Question about last statement
by ikegami (Patriarch) on Aug 18, 2004 at 18:23 UTC | |
|
Re: Question about last statement
by shemp (Deacon) on Aug 18, 2004 at 19:26 UTC |