On Mon, 18 Nov 2002, Chris Mulcahy 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. c'ya sven -- The Internet treats censorship as a routing problem, and routes around it. (John Gilmore on http://www.cygnus.com/~gnu/) ------------------------------------------------------- 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