[sf-perl] Hanging with the diamond operator?
Daniel Lo
woof at danlo.com
Tue Jan 8 14:48:21 PST 2008
Hello Richard,
Be sure to invoke Log::Log4perl this way..
use Log::Log4perl qw | :easy |;
That makes DEBUG, INFO, WARN, ERROR, FATAL available as easy calls.
-daniel
Tuesday, January 8, 2008, 2:43:29 PM, you wrote:
> I have never used DEBUG before I'll try this and see what happens.
> Thanks,
> RIchard
> On 1/8/08, Daniel Lo <woof at danlo.com> wrote:
>> Log::Log4perl is could be a winner.
>>
>> You might want to try logging the "$in_file" names, along with a start and
>> finish time.
>>
>> sub delimit {
>> my ...
>> DEBUG( 'Start :' . scalar localtime );
>> DEBUG( '$in_file :' . $in_file );
>>
>> ...
>>
>> DEBUG ('End :' . scalar localtime ) ;
>> }
>>
>> -daniel
>>
>>
>>
>> Tuesday, January 8, 2008, 2:07:08 PM, you wrote:
>>
>> > Follow-up:
>>
>> > I agree with Joe. I don't think we'll be able to help any further
>> > without seeing more of your code (and files).
>>
>> > Even then, we may not be able to reproduce the problem, if Daniel's and my
>> > common hunch is right and it's an NFS (or other SAN) glitch.
>>
>> > I would suggest re-writing the code with non-blocking IO instead of <>,
>> > then seeing what kind of errors you get back (in $!). See the entry on
>> sysread
>> > in the perlfunc(1) man page.
>>
>> > Bummer about the private network thing. That's a pain. Are you sure you
>> > aren't getting yourself into trouble sending us code?
>>
>>
>>
>>
>> --
>> Best regards,
>> Daniel mailto:woof at danlo.com
>>
>>
>> _______________________________________________
>> SanFrancisco-pm mailing list
>> SanFrancisco-pm at pm.org
>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm
>>
> _______________________________________________
> SanFrancisco-pm mailing list
> SanFrancisco-pm at pm.org
> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm
--
Best regards,
Daniel mailto:woof at danlo.com
More information about the SanFrancisco-pm
mailing list