Colin Watson's blog

Jun 23 2008 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.

Posted by Colin Watson on 2008-06-23 in misc. updated 2008-06-23 Tags: planet-debian.

Categories

  1. columbiform
  2. debian
  3. grub
  4. launchpad
  5. libpipeline
  6. man-db
  7. misc
  8. summerofcode
  9. ubuntu

Tag cloud

  • activity
  • apt
  • binfmt-support
  • bzr
  • columbiform
  • coreutils
  • d-i
  • debconf
  • debian
  • dpkg
  • firefox
  • freexian
  • grub
  • juju
  • keysigning
  • launchpad
  • libpipeline
  • man-db
  • openssh
  • openstack
  • parted
  • planet-debian
  • planet-ubuntu
  • python
  • storm
  • summerofcode-2006
  • twisted
  • ubuntu

Social

  • Twitter
  • RSS feed

Support me

  • Liberapay

Blog

  • columbiform
  • debian
  • grub
  • launchpad
  • libpipeline
  • man-db
  • misc
  • summerofcode
  • ubuntu

Colin Watson's blog. Powered by Pelican and m.css.