in reply to Safe HTML output?
HTH.# First solution: Put coderefs in scalars and use those my $start = sub { ... }; my $p = HTTP::Parser->new( ..., start_h => [ $start, ... ], ... ); # Second solution: Use coderefs, but don't use scalars to hold them my $p = HTTP::Parser->new( ..., start_h => [ sub { ... # code here }, ... ], end_h => [ sub { ... # code here }, ... ], ... );
|
|---|