Thanks Everyone. All the comments were very helpful. This works good:
perl -00 -ne 'print if eval $ENV{REX}' file.txtIn reply to Re: Using a regex saved in an environment variable
by J0ax88
in thread Using a regex saved in an environment variable
by J0ax88
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |