chiark / gitweb /
Re: Perl is strange
authorcjwatson <>
Mon, 23 Jun 2008 15:58:08 +0000 (15:58 +0000)
committercjwatson <>
Mon, 23 Jun 2008 15:58:08 +0000 (15:58 +0000)
2008-06-23-reply-perl-is-strange.txt [new file with mode: 0644]

diff --git a/2008-06-23-reply-perl-is-strange.txt b/2008-06-23-reply-perl-is-strange.txt
new file mode 100644 (file)
index 0000000..01c33dc
--- /dev/null
@@ -0,0 +1,11 @@
+Re: Perl is strange
+
+<p><a href="http://www.df7cb.de/blog/2008/Perl_is_strange.html">Christoph</a>:
+That's because <code>=~</code> binds more tightly than <code>+</code>. This
+does what you meant:</p>
+
+<pre>
+$ perl -le 'print "yoo" if (1 + 1) =~ /3/'
+</pre>
+
+<p>perlop(1) has a useful table of precedence.</p>