chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cc8f81
)
Re: Perl is strange
author
cjwatson
<>
Mon, 23 Jun 2008 15:58:08 +0000
(15:58 +0000)
committer
cjwatson
<>
Mon, 23 Jun 2008 15:58:08 +0000
(15:58 +0000)
2008-06-23-reply-perl-is-strange.txt
[new file with mode: 0644]
patch
|
blob
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
+++ b/
2008-06-23-reply-perl-is-strange.txt
@@ -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>