Use of unitialised gubbins c/w Brainbench

Paul Johnson paul at pjcj.net
Thu Dec 7 22:02:45 GMT 2006


On Thu, Dec 07, 2006 at 08:46:24PM +0000, David Cantrell wrote:

> On Thu, Dec 07, 2006 at 01:49:06PM +0000, Andy Armstrong wrote:

> > You could certainly replace sprintf() with one that said 'Argument 3  
> > to sprintf is undef at line blah'. That do?
> 
> How would you get at the line number?  $. isn't useful.

I suspect a little caller() magic would provide all the required
information.  Perhaps carp() might even be sufficient.

-- 
Paul Johnson - paul at pjcj.net
http://www.pjcj.net


More information about the london.pm mailing list