in reply to
strange uninitialized value problem
I also believe the 'my $log' will prevent Benchmark from seeing $log. You should use 'our $log' or 'use vars qw/$log/' prior to the assignment.
Comment on
Re: strange uninitialized value problem
Replies are listed 'Best First'.
RE: Re: strange uninitialized value problem
by
chromatic
(Archbishop)
on Jun 07, 2000 at 01:46 UTC
Fortunately, $log
is
available to the line you mention. It's in the same lexical scope (the main file block).
Note that
our
has just been introduced in Perl 5.6.
[reply]
In Section
Seekers of Perl Wisdom