hari has asked for the wisdom of the Perl Monks concerning the following question:
anybody know how to do it.$currentline = <AFILE>; if($currentline =~ /ENCRYPTED/) { #here i like to point to previous line #so that if i call<AFILE>again it returns the same line. #without using FileHandle #write(*AFILE); } else { parse($currentLine); }
Edited 2003-03-05 by mirod:added <code> tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: point to previous line
by tachyon (Chancellor) on Mar 05, 2003 at 09:25 UTC | |
by hotshot (Prior) on Mar 05, 2003 at 09:54 UTC | |
by hari (Novice) on Mar 05, 2003 at 11:17 UTC | |
|
Re: point to previous line
by rir (Vicar) on Mar 05, 2003 at 14:09 UTC | |
|
Re: point to previous line
by Limbic~Region (Chancellor) on Mar 05, 2003 at 14:12 UTC | |
by hari (Novice) on Mar 06, 2003 at 04:48 UTC | |
by Limbic~Region (Chancellor) on Mar 06, 2003 at 13:38 UTC | |
by hari (Novice) on Mar 10, 2003 at 12:33 UTC |