"Chas. Owens" schreef:

> The brackets are being used because some people find [.] easier to
> read than \..

Yes, I do that for expressions that are not in a loop that runs a
zillion times, this because in Perl up to 5.8.8 the "[.]" is a bit less
fast than "\.".
In Perl 5.10 this difference is gone: "[.]" and "\." lead to the same
opcodes.

Another thing is that [.] survives interpolation: ("[.]" eq '[.]', "\."
eq '.').
I started using "[.]" and "[?]" and "[*]" etc., in procmail recipes.

-- 
Affijn, Ruud

"Gewoon is een tijger."


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to