On 2012.06.06.04.06, Uri Guttman wrote:
> On 06/06/2012 03:58 AM, Wernher Eksteen wrote:
> >I have two arrays that I need to compare, and then print the differences:
> 
> this is answered in the perl FAQ. please check that before you ask
> ...

Specifically, you can use "perldoc -q" to search through the FAQ that
comes with perl. In this case I tried:

  perldoc -q two array diff

and the second question that comes up is "How do I compute the
difference of two arrays?"

The other (command-line) way to get to it is to do "perldoc perlfaq" to
see the list of the FAQs. One of them is "perlfaq4 - Data Manipulation"
which sounds promising, and indeed "perldoc perlfaq4" contains the same
entry I got to from the "perldoc -q ..." command above. Actually now
that I look at it, "perldoc perlfaq" contains a list of all the
questions.

perldoc.perl.org is another interface you can try for similar results.

--Brock


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to