Re: test whether two arrays are equal
[email protected] (Dan Jacobson) Thu, 09 Dec 2004 14:27:24 +0800
| Newsgroups | perl.documentation |
|---|---|
| Message-ID | <[email protected]> |
b> rewrite the part of the answer you think should change, then post it.
OK. Please make this the new result of
$ perldoc -q 'How do I test whether two arrays or hashes are equal?'
Found in /usr/share/perl/5.8/pod/perlfaq4.pod
How do I test whether two arrays or hashes are equal?
+ For the simplest cases, one might use if("@frogs" eq "@toads"){...}.
The following code works for single-level arrays. It uses a...