I just spent 2 hours chasing down this bug..
I just found the cause of my problems (with the help of Hook::LexWrap) - I was calling localtime in list context, and it was returning the first of the list of values instead of the Time::Piece object I was expecting hundreds of lines and 30 seconds or two minutes away from the source of the problem.
Checking the documentation it doesn't mention this behaviour - I can understand why, but it's still unexpected.. ah - just found it.. there is a very brief mention that it over-rides scalar context.. maybe a bigger warning would be nicer.. unsure wether it's worth mentioning in annocpan or rt.
Patches welcome :-) (Score:2)
Re:Patches welcome :-) (Score:2)
@JAPH = qw(Hacker Perl Another Just);
print reverse @JAPH;