Any insight on the syntax would be appreciated.#!/usr/bin/perl -w use strict; use warnings; use constant NEWLINE => '^M'; while (<>) { s/\Q$NEWLINE$//; # incorrect syntax here print; }
In reply to substituting constants within regex? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |