I think the or-ed regex I've shown you is better, as long as @data1 is known from the beginning and doesn't change dynamically.
Cheers Rolf
( addicted to the Perl Programming Language)
In reply to Re^4: Help understand why this grep does not work
by LanX
in thread Help understand why this grep does not work
by drmrgd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |