G'day Speed_Freak,
"Sorry for the crap post, I'm on a time crunch ..."
Well, I expect you are. You wasted (your limited) time writing this (in your own words) "crap post" and are no closer to a solution. The aphorism, "more haste, less speed", would seem appropriate here.
What you've posted, seems to be asking how to do something like these:
$ perl -E 'my @x = (0..4); my @y = (0,1); my @z; @z = @x if $x[1] == $ +y[1] || $x[3] == $y[1]; say "|@z|"' |0 1 2 3 4| $ perl -E 'my @x = (10..14); my @y = (0,1); my @z; @z = @x if $x[1] == + $y[1] || $x[3] == $y[1]; say "|@z|"' ||
Or perhaps these:
$ perl -E 'my @x = (0..4); my @y = (0,1); my @z; @z = @x if $x[1] =~ / +$y[1]/ || $x[3] =~ /$y[1]/; say "|@z|"' |0 1 2 3 4| $ perl -E 'my @x = (10..14); my @y = (0,1); my @z; @z = @x if $x[1] =~ + /$y[1]/ || $x[3] =~ /$y[1]/; say "|@z|"' |10 11 12 13 14|
Although, I rather suspect that what you really want help with is quite different.
"... it has a ton of extraneous data that I don't want, and has proven incredibly hard to prevent from being entered into the array."
It sounds like that is probably what you should be asking about. Fix the source of the problem instead of patching whatever mess comes out the other end.
"OOOOH, and while we're at it, lets ..."
Let's not! If it's at all possible, that makes even less sense that what went before it. I read it a few times ... I gave up.
— Ken
In reply to Re: Filtering array based off of two values against second array
by kcott
in thread Filtering array based off of two values against second array
by Speed_Freak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |