In article <[EMAIL PROTECTED]>, Brian Gerard wrote:

> And the clouds parted, and Kevin Pfeiffer said...
[...]
>> If I don't escape the slash in the char class -- i.e. /([^\/]+)$/ -- I
>> get this error:
>> Unmatched [ in regex; marked by <-- HERE in m/([ <-- HERE ^/ at ./test-0
>> line 7.
>> 
>> This makes no sense to me (since this is Perl and not sed or
>> something)... (implied Question 2)
> 
> The reason is that you're using '/' as the delimiter for the m// operator,
> and '/' isn't automatically escaped in a character class (it's not a
> metacharacter).  I got away with it because I was using '|' as the
> delimiter in my substitution.

Oi!

I though the char class was more or less immune to such things. I will make
a note of this in my dusty brain.


Thanks!
-- 
Kevin Pfeiffer


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to