Re: test whether two arrays are equal
[email protected] (_brian_d_foy) Fri, 10 Dec 2004 05:02:57 -0600
| Newsgroups | perl.documentation |
|---|---|
| Message-ID | <101220040502578772%[email protected]> |
In article <[email protected]>, Dan Jacobson <[email protected]> wrote: > 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... I won't be making this change. I thought you had said that that method was an example of what not to do, but your one line change suggests that they use it. I don't think it improves the answer at all. -- brian d foy, [email protected]