[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] How to use "/" in a regular expression char class



Hi,

A quick question (I hope).  I am trying to substitute a "/" with nothing
(in other words I want get rid of it) using a character class.  From the
Llama book the following looks like it will work, but it doesn't:

$parameters{'sequence'} =~ s/[\/\-,_]\s+//;

where $parameters{'sequence'} is a string submitted from a form.  Everything
else seems to work within the [].????????  I am running MacPerl 4.1.8 on a
Q700.

Thanks
Ernesto