ketema has asked for the wisdom of the Perl Monks concerning the following question:
Is there a better way to do this? For example is there a list comparison function that would work like:foreach my $thing(@b){ if(scalar grep(/^$thing/,@a) == 0){ push(@c,$thing); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: List Comparison
by davido (Cardinal) on Sep 09, 2004 at 16:08 UTC | |
by fergal (Chaplain) on Sep 10, 2004 at 10:20 UTC | |
|
Re: List Comparison
by ketema (Scribe) on Sep 09, 2004 at 15:57 UTC | |
|
Re: List Comparison
by trammell (Priest) on Sep 09, 2004 at 15:57 UTC | |
|
Re: List Comparison
by herveus (Prior) on Sep 09, 2004 at 15:59 UTC | |
by ketema (Scribe) on Sep 09, 2004 at 16:06 UTC |