RE: list-parsing problem
"Stephen Hardisty" <[email protected]> Thu, 18 Sep 2003 10:35:10 +0100
| Newsgroups | gmane.comp.lang.perl.beginners,gmane.comp.lang.perl.daily.tips |
|---|---|
| Message-ID | <[email protected]> |
Two dimensional hash perhaps? Where the first column is the first =
dimension and the second is, well, the second.
E.g.
while(<FH>)
{
($col1, $col2) =3D split(/$delimeter/, chomp($_));
$blah{$col1}{$col2} =3D 1;
}
Hope this helps.
________________________________________________________________________
This=20email=20has=20been=20scanned=20for=20all=20viruses=20by=20the=20Mes=
sageLabs=20Email
Security=20System.=20For=20more=20information=20on=20a=20proactive=20email=
=20security
service=20working=20around=20the=20clock,=20around=20the=20globe,=20visit
http://www.messagelabs.com
________________________________________________________________________