Perl Advent Calendar 2010-12-04

Debuggin' blinken strings

by Jerrad Pierce

Today we bring you a humble stocking stuffer, Devel::Eval. A module which permits you to step through evaluated strings as you might any other code. Unfortunately eval is one of the core functions that cannot be overridden, so to access this functionality you must change your calls from eval to dval—which might lead you to try to use Devel::Dval instead— after explicitly importing the subroutine.

View Source (POD)