in reply to Scoping and File::Find

You can put your our $html; outside of the sub a_moduser. or include the sub wanted in a_moduser and prefix $user and $html with my.
sub a_moduser { my $user = shift; my $html; [...] $html = '<form action="' . $$config{selfpath} . 'method="post +">'; find( sub { [...] $html .= '<td><input type="radio" name="base_dir" value="' +. $_ . '"></td>'; [...] }, $$config{base_dir}); [...] }
Boris

Replies are listed 'Best First'.
Re^2: Scoping and File::Find
by abulafia (Sexton) on Jul 19, 2004 at 22:00 UTC
    Ah, that was my problem. I've been staring at this for too long... Thank you.