Correct. It's just very convenient.
my $digit = "\\d"; -vs- my $digit = qr/\d/;
It can also be faster (since qr// compiles up front).
In reply to Re^2: passing regular expression
by ikegami
in thread passing regular expression
by karthikasasanka
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |