in reply to Re: Re: comparing two arrays
in thread comparing two arrays
Keep us posted.
--Jim
Afterthought: It is usually helpful when I'm debugging to use snippets similar to the following for testing arrays:
It helps spot newlines, incorrect subscripting and such.my $i = 0; foreach (@file) { print "\@file[", $i++, "] = '$_'\n"; }
Update: In case it is not clear from the previous posts, we're assuming that the file 'd:\mms_tableload.txt' looks like this:
The hash lookup must be an exact match (including newlines and case sensitivity). If there is other extraneous information like HTML tags embedded in @file, then you may need to use a different method that searches strings (like grep, or m/$_/), and this can be tricky since you'd have to insure that your search for "mike" doesn't match positve to "sarak_mike". </code>sarak_mike\n mike\n some\n other\n data\n
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: comparing two arrays
by jdelmedi (Initiate) on Nov 26, 2001 at 18:03 UTC | |
by jlongino (Parson) on Nov 26, 2001 at 20:48 UTC |