-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Lars Balker Rasmussen <lars@balker.org> writes:
> Peter Makholm <peter@makholm.net> writes:
>> $foo_pat er her det samme som $foo der igen er det tag du vil have på
>> maillinglisten.
>>
>> > $foo_pat =~ s/(\W)/\\$1/g;
>>
>> Alle tegn i $foo_pat der ikke er bogstaver, for sat en \ foran. Hvis
>> $foo_pat før var "[FOO-DK]" er den bagefter "\[FOO\-DK\]".
>
> Og den rigtige måde at gøre den slags på nu om dage er:
>
> $foo_pat = "\Q$foo\E";
eller
$foo_pat = quotemeta($foo_pat);
- --
Dennis
I have always thought explanations were overkill when correcting
mistakes. A simple "that's wrong" must suffice. I mean, people are
always aware why they are wrong. They just make mistakes to annoy you.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <
http://mailcrypt.sourceforge.net/>
iD8DBQE+Jpgbo6hqeoa8JFgRAiGAAKCkWlemujHE10Q1amc+DMo0zfV7gwCgm9Tn
xZcGUOLrv0UCTeHOTbnB6oM=
=7mr9
-----END PGP SIGNATURE-----