http://qs321.pair.com?node_id=66981


in reply to Re: Re: grepping
in thread grepping

I think you misundertand the relationship between variables and arrays. Arrays hold values; they do not hold variables.

Consider:

my $id = 47; my @data = ( $id );
@data now holds the value 47, and knows nothing whatsoever about where that value came from.

The script you've asked for (and gotten) mere tells which values appear in one array and not the other.