It does use a variable, but it saves a sub. The advantage of being able to interpolate variables to me outweight the advantages 'constants' give me.my $NAME = "abc"; ... if ($input =~ /$NAME/) { ... }
In reply to Re: using constants in regex/search
by JavaFan
in thread using constants in regex/search
by geniezlife
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |