About Colin Watson's blog cjwatson@debian.org
Subscribe Subscribe to a syndicated feed of my blog.
Flavours
Powered by Blosxom
Re: Perl is strange
Christoph: That's because =~ binds more tightly than +. This does what you meant:
=~
+
$ perl -le 'print "yoo" if (1 + 1) =~ /3/'
perlop(1) has a useful table of precedence.
[/debian] permanent link