Whoops! You're using an array as if it were a hash. Are you fluent in AWK, by chance?
Associative arrays in AWK are analagous to hashes in Perl, but their usage looks no different than that of regular arrays.
You need to explicitly declare array @saw as a hash, e.g., %saw, and change the square brackets you are using to curly braces, as mentioned elsewhere in this thread.
dmm
You can give a man a fish and feed him for a day ...In reply to Re: Problems with Comparing Arrays
by dmmiller2k
in thread Problems with Comparing Arrays
by dru145
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |