OpenFest 2006 - Share the Freedom

December 13, 2003

Symbolic refs in Perl

Heh.. learn something new every day, it seems.

The FreeBSD port of texi2html that I maintain was throwing weird fits on FreeBSD 4.x-STABLE with Perl 5.005. After a bit of poking through the error messages, the Perl docs managed to surprise me with a new way in which Perl tries to DWIM: sometimes you can use a string containing the name of a variable as a reference to the variable itself! Well, the port is fixed now, and the fix has been sent to the texi2html developers, just in case.

I guess part of the reason I've never come across this before is that it's become a kind of a habit to start all my Perl scripts with taint mode and use strict ;)

Posted by roam at December 13, 2003 08:59 AM

Comments
TrackBack