Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Re: (zdog) Re: Finding Redundant values in arrays

by IraTarball (Monk)
on Jun 08, 2001 at 00:36 UTC ( #86739=note: print w/replies, xml ) Need Help??

in reply to Re: (zdog) Re: Finding Redundant values in arrays
in thread Finding Redundant values in arrays

This is broken, notice that it just prints the first element of the @test array? So aplaca doesn't print. In fact if you put peguin as the first element of test it prints peguin. The problem is that you're trying to be to terse. The $_ that you're using in the grep is not the $_ that aliases an element of @test, it's the $_ that aliases an element of @redundant (grep uses $_ too). So you're saying next if there's an element of redundant that matches an element of redundant. Probably not really what your were thinking of.

Update: Well, it was broken. I started getting down votes for this node, I guess 'cause it's no longer applicable.

:) Ira

"So... What do all these little arrows mean?"

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://86739]
[Discipulus]: see you monks! flying to greece!
[Corion]: Oh, cool! Have fun Discipulus!

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2018-06-25 18:20 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (128 votes). Check out past polls.