From: Robert Elliott (rde at domain irelands-web.ie)
Date: Fri 27 Aug 1999 - 00:03:58 IST
Please take pity, one and all, on a poor programmer who's struggling to
wrap his head around regular expressions. My aim is simple enough; to
delete certain punctuation from a line. I thought a substitution would
do this using
$lin =~ s/[\.,\,,\',\-]//
and when it didn't I tried the same thing with a translation; ie
$lin =~ tr/[\.,\,,\',\-]//
neither works; why not? Please?
-- Robert Elliott http://www.irelands-web.ie/rde rde at domain irelands-web.ie
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:30 GMT