Am 05.01.2015 um 22:57 schrieb Bowie Bailey:
On 1/5/2015 4:13 PM, John Hardin wrote:
On Mon, 5 Jan 2015, Bowie Bailey wrote:

You can avoid having to escape the slash (/) by using a different
separator for the regex.  This can avoid "leaning toothpick syndrome."

For example:
  m#http://match/this/url/#

Ouch. # won't work for that (in SA at least) as it comments out the
rest of the RE.

Ack!  Forgot about that minor difference with SA.  # is my general go-to
character for that in normal Perl scripts.

This should illustrate the same point with the minor improvement of
actually *working* in SA:
m^http://match/this/url/^

i would not play such games because it makes it even more likely that a common escape function is missing something, besides that

header CUST_MANY_SPAM_TO X-Local-Envelope-To =~ /^(\<h\.reindl\@thelounge\.net\>)$/i



Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to