JojoLinkyBob has asked for the wisdom of the Perl Monks concerning the following question:
while(<fp>) { s/\(/\n\(\n/g; s/\)/\n\)\n/g; #do stuff to current line }
thx, Desert coder
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: When One Line Becomes Three
by Masem (Monsignor) on Jun 14, 2001 at 22:07 UTC | |
|
Re: When One Line Becomes Three
by marcink (Monk) on Jun 14, 2001 at 22:08 UTC | |
by JojoLinkyBob (Scribe) on Jun 14, 2001 at 22:39 UTC | |
|
(tye)Re: When One Line Becomes Three
by tye (Sage) on Jun 15, 2001 at 02:06 UTC | |
|
Re: When One Line Becomes Three
by dragonchild (Archbishop) on Jun 14, 2001 at 21:59 UTC |