hongping has asked for the wisdom of the Perl Monks concerning the following question:
this is the code that i use, but it is not working. Any ideas? Thankx @pcovforeach(@realassert){ my ($theline)=grep{/$_/} @pcov; push (@thelist, "$theline"); }
@realassertyphs.pc0.samelogic.fois_ebs.sbetrgt_inst
what i wan is yphs.pc0.samelogic.fois_ebs.sbetrgt_inst when @realassert matches @pcv.sbetrgt_inst
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Comparing 1 array that matches in 2nd array
by frozenwithjoy (Priest) on Jul 13, 2012 at 08:20 UTC | |
|
Re: Comparing 1 array that matches in 2nd array
by davido (Cardinal) on Jul 13, 2012 at 08:23 UTC | |
|
Re: Comparing 1 array that matches in 2nd array
by brx (Pilgrim) on Jul 13, 2012 at 08:49 UTC | |
|
Re: Comparing 1 array that matches in 2nd array
by locked_user sundialsvc4 (Abbot) on Jul 13, 2012 at 16:20 UTC |