in reply to Re: searching 2 arraysin thread searching 2 arrays
It's a conditional ternary operator. You can read about it in perlop. An equivalent to Zaxo's
print exists $search{$_} ? "$_ : Found $_\n" : "$_ : Not Found $_\n"; [download]
if (exists $search{$_}) { print "$_ : Found $_\n"; } else { print "$_ : Not Found $_\n"; } [download]
Do not rebuke them with harsh words ... but rather lead them gently - with URLs - so that they may learn wisdom.