[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] Patch for Text::MagicTemplate


Hi,

I have a little improvement for the CGI::Application module. In the param() method, you should change the line:

    return (keys(%$rp));

with 

    wantarray ? return (keys(%$rp)) : return $rp ;

In list context it changes nothing - so it would work as usual -  but in scalar context this would add the possibility to pass all the stored parameters to the constructor of my module Text::MagicTemplate (and the HTML::MagicTemplate wrapper).

http://search.cpan.org/perldoc?Text::MagicTemplate

Text::MagicTemplate use package names AND REFERENCES TO HASH to look up values to merge with templates, so it would be a nice feature of your module to allow this.

Please, let me know what are you thinking about this improvement and thank you for your attention.

Domizio Demichelis

--
perl -MLWP::Simple -e "getprint(' http://perl.4pro.net ')"



---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.