Subject: | regular expression error on tr/_/ /; |
My code is as follows:
for (@$column_names) {
tr/_/ /; # strips out underscores from column names
}
I get this error from Perlcritic:
Regular expression without '/x' flag at line 138, column 5. See page 236 of PBP.
Regular expression without '/m' flag at line 138, column 5. See page 237 of PBP.
"tr" is not a regular expression...