s/\s+$// for @arr2; [download]
In reply to Re^3: perl grep with regex by choroba in thread perl grep with regex by swissknife