in reply to Re: Assigning text sections to scalars
in thread Assigning text sections to scalars
To make it even saver (minor points):
The \s* construction catches unvisible spaces and tabs, whereas \n+ catches faulty triple (or more) newlines.($title, $author, $abstract, undef) = split /\n\s*\n+/, $article;
The undef makes sure that additional text doesn't screw up the abstract.
Jeroen
"We are not alone"(FZ)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Assigning text sections to scalars
by hdp (Beadle) on Apr 25, 2001 at 18:13 UTC |