in reply to Backwhacking with \ as delimiter

I'd never use backslash ('\') as "regex-delimiter". All special characters are escaped with it so you'll just create confusion. Use the normal slash ('/') and you won't have any problems. I've seen '#' being used, too, but personally I don't like the look of it. But that might be just me..

Replies are listed 'Best First'.
Re: Re: Backwhacking with \ as delimiter
by rob_au (Abbot) on Aug 26, 2001 at 16:24 UTC
    You could always still use the \ as a delimiter within $_, pass it through another substitution (s///) to replace it and then another to escape characters where necessary. Eval, rinse and repeat!
     
    Yes, it makes the process more convoluted, but then again with obfuscation, this can be a good thing! :)
     

     
    Ooohhh, Rob no beer function well without!