On Dec 17, LoneWolf said:
>I am parsing a massive file line by line and cleaning it up. It has about
>15 fields, all separated by | and I want to remove the white space from
>before and after the pipes so that as the information is pd it gets rid
>of external white spaces from the string and such.
Then split on /\s*\|\s*/. That regex reads "zero or more whitespace, a |,
then zero or more whitespace".
fields = split /\s*\|\s*/, $line;
Jeff "japhy" Pinyan [email]japhypobox.com[/email] [url]http://www.pobox.com/~japhy/[/url]
RPI Acacia brother #734 [url]http://www.perlmonks.org/[/url] [url]http://www.cpan.org/[/url]
<stu> what does y/// stand ...