in reply to When One Line Becomes Three
while (<fp>) { s/\(/\n\(\n/g; s/\)/\n\)\n/g; #do stuff to current line print ">$_<\n" foreach split /\n/; # OR foreach my $t ( split /\n/ ) { print ">$t<\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: When One Line Becomes Three
by JojoLinkyBob (Scribe) on Jun 14, 2001 at 22:39 UTC |