I recommend the Readonly module:
#!/usr/bin/perl -w use strict; use warnings; use Readonly; Readonly my $NEWLINE => '^M'; while (<>) { s/\Q$NEWLINE$//; print; }
Cheers,
Ovid
New address of my CGI Course.
In reply to Re: substituting constants within regex?
by Ovid
in thread substituting constants within regex?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |