dee00zee has asked for the wisdom of the Perl Monks concerning the following question:
open(IN,"+<datum"); while(<IN>) { if (/sister/) { $where=tell(IN); $add="and brothers"; seek(IN,$where,0); print IN "$add"; next; } else { @lines = split(/\n+/); next; } } close IN;
Edited by Chady -- added code tags.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: help me on seek and tell function
by davido (Cardinal) on Nov 24, 2004 at 07:31 UTC | |
|
Re: help me on seek and tell function
by tachyon (Chancellor) on Nov 24, 2004 at 07:15 UTC |