in reply to Re^8: Perl modules or standard tools for searching hierachical data
in thread Perl modules or standard tools for searching hierachical data
As your read your input data record by record, you must use "chomp" to remove the line termination and then you must split on "|". I've already mentioned both of these details in two previous replies. I'm done now. If you still can't get it, I'm sorry for you.
while (<DATA>) { chomp; # YOU NEED TO DO THIS my ($c, $p) = split( /\|/ ); # THEN DO THIS ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Perl modules or standard tools for searching hierachical data
by SlackBladder (Novice) on Mar 20, 2007 at 10:50 UTC |