Categories

Bitten by a typo

Got caught by a silly typing mistake that caused a bit of head scratching until I tracked it down.

A common scenario is adding an element $y to an array $x

$x += $y

I’d typed

$x =+= $y

The function loaded but failed at run time.

Took a while to spot.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>