in reply to parsing data in a file
Take a look at split - the first argument is actually a regular expression.
Looking at your data, split(":", $input) should probably be split(/: /, $input) (i.e. a colon followed by a space).
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: parsing data in a file
by CountZero (Bishop) on Nov 02, 2010 at 15:36 UTC | |
by kcott (Archbishop) on Nov 02, 2010 at 15:44 UTC |