On Mon, 18 Nov 2002, Sven Koch wrote: > > I've had Razor-Report wrapped in a script file for quite a while. > > Sometime in the past, I've started receiving: > > > > ---> SNIP <--- > > [cmulcahy@gumby cmulcahy]$ razor-report > > Can't use an undefined value as a symbol reference at > > /usr/lib/perl5/site_perl/5.005/i386-linux/Razor2/Client/Agent.pm line 756. > > ---> SNIP <--- > > > > but I never noticed because I was sending stderr to /dev/null. I've > > downloaded and installed the latest and greatest razor-agents and > > razor-agents-sdk. > > > > Suggestions anyone? > > The following patch fixes it for me: > > --- razor-agents-2.20/lib/Razor2/Client/Agent.pm.orig Sat Oct 26 05:48:39 2002 > +++ razor-agents-2.20/lib/Razor2/Client/Agent.pm Sat Oct 26 05:49:11 2002 > @@ -756,6 +756,7 @@ > if (ref $file) { > $fh = $file > } else { > + $fh = *FOOBAR; > open $fh, "<$file" or return $self->error("Can't open $file: $!"); > } > next unless defined(my $line = <$fh>); > > > The Problem ist that $fh is undef, and should be opened as a file-handle - > so I just set it to a dummy-value before opening and it works. >
That seemed to fix the problem. Thanks! Chris ------------------------------------------------------- This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html _______________________________________________ Razor-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/razor-users