Subject: | Undef warning w/anonymous components |
Hi,
The documentation for HTML::Mason::Component states that the value
returned by "dir_path" is undefined for anonymous components. However,
when using anonymous components, this can lead to an undef warning from
HTML::Mason::Tools:
Use of uninitialized value $dir_path in concatenation (.) or string at
/usr/local/lib/perl5/site_perl/5.10.1/HTML/Mason/Tools.pm line 114.
The line referenced above is a join() in the absolute_comp_path function.
I suggest that Component.pm and Request.pm should check to see if the
current component's comp_id is set, before calling absolute_comp_path.
Thanks,
--Alex