in reply to Re: Boolean array indexing
in thread Boolean array indexing

Why not use push though?
$b[$_] > 1 and push(@c, $a[$_]) for 0 .. $#a;;

Replies are listed 'Best First'.
Re^3: Boolean array indexing
by BrowserUk (Patriarch) on Nov 22, 2013 at 08:33 UTC

    Good point. Does away with the need for a temp var. ++


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.