Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
First of all, try super search. There are lots of nodes out there that ask similar questions. Here is the one, for example that I picked off the top of the list. Now, I'm sure there are better ways of doing this, but the simple implementation just iterates over both arrays and uses splice.
In case you're not familiar, Data::Dumper is your friend when it comes to quickly printing out output, especially arrays and hashes. 'qw' means separate whatever's inside the brackets and put them in single quotes (no variable interpolation). So qw(Into the wild) -> ('Into', 'the', 'wild'). And always use strict and use warnings.
hope that helps Those are my principles. If you don't like them I have others. -- Groucho Marx ....... In reply to Re: array filter
by why_bird
|
|