in reply to How to use long strings...
if your format is really:
Then you can split it out:crud_GOOD_crud
#untested for (split("\n", $content) ) # split string to multiple lines { my (undef, $good, undef) = split(/_/, $_); # could also be written as $good = ( split(/_/, $_) )[1]; $seen{$good}++; } for ( keys %seen ) { print "$_ $seen{$_}\n" }
--Bob Niederman, http://bob-n.com
All code given here is UNTESTED unless otherwise stated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How to use long strings...
by zby (Vicar) on Sep 03, 2003 at 09:20 UTC | |
|
Re: Re: How to use long strings...
by khelben (Initiate) on Sep 03, 2003 at 09:30 UTC | |
by khelben (Initiate) on Sep 03, 2003 at 09:41 UTC |