On Jul 24, roishe2005 said:
> at the moment i only know of the perl grep command:
> @arrSingleUnique = grep(/# 4134/, @lines);
> but this one is looking only for a single pattern.
> How can i search one of two patterns with perl ?
You don't know regexes very well then. The syntax for alternation is
@matches = grep /abc|def/, @data;
Read 'perldoc perlretut'.
Jeff "japhy" Pinyan % How can we ever be the sold short or
RPI Acacia Brother #734 % the cheated, we who for every service
% have long ago been overpaid?
% -- Meister Eckhart