On Sun, 22 Mar 2009, Mark Copper wrote: > Begging your forebearance with this silly question. It seems to be > related to hanging Apache processes. > > I am occasionally getting the warning: > Use of uninitialized value in concatenation (.) or string at > /usr/share/perl5/HTML/Mason/Request.pm line 1191. > > On my Debian install, line 1191 is the concatenation line in the print > sub: > > sub print > { > my $self = shift; > > # $self->{top_stack} is always defined _except_ in the case of a > # call to print inside a start-/end-request plugin. > my $bufref = > ( defined $self->{top_stack} > ? $self->{top_stack}->[STACK_BUFFER] > : \$self->{request_buffer} > ); > > # use 'if defined' for maximum efficiency; grep creates a list. > for ( @_ ) { > $$bufref .= $_ if defined; # this is line 1191 > } > > $self->flush_buffer if $self->{autoflush}; > } > > My question: what can possibly be in @_ that satisfies the conditional > "if defined" and still sets off the "unitialized value" warning?
If $$bufref itself is not defined, that could do it. I'm not sure how that would happen in just rare cases. I'd think if it happened it would happen often. I'd also think it would happen for everyone else. -dave /*============================================================ http://VegGuide.org http://blog.urth.org Your guide to all that's veg House Absolute(ly Pointless) ============================================================*/ ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users