20 Apr 2009 16:52:51 UTC
- Module version: 1.03
- Source (raw)
- Browse (raw)
- How to Contribute
- Clone repository
- Issues (7)
- Testers (5577 / 4 / 0)
- KwaliteeBus factor: 1
- 60.17% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity24 month
- Download (30.17KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionADAMK Adam Kennedy
- MAIN METHODS
- SECONDARY METHODS
- SEE ALSO
The method it uses is to write anonymous variables, in the same way you would in Perl. The following shows some examples.
One advantage of doing it in this method is that you do not have to co-ordinate variable names between your HTML templates and Perl. You could use a simple Template Toolkit phrase like the following to get data into your HTML templates.
The variables you dump can also be of arbitrary depth and complexity, with a few limitations.
- ARRAY and HASH only
- No Circular References
All methods are called as methods directly, in the form
If needed, the argument can even be a normal text string, although it wouldn't do a lot to it. :)
undefif an error is found.
As above, but the
var name = struct;. Note that the method WILL put the trailing semi-colon on the string.
Returns true is a scalar is numeric, or false otherwise.
You may also access method in using an instantiated object.
Options: quote_char : Set the quote_char for stirng scalars. Default is '"'.
The following are a little less general, but may be of some use.
Creates a named variable from a scalar reference.
Creates a named variable from an array reference.
Creates a named variable from a hash reference.
Bugs should be reported via the CPAN bug tracker at:
For other comments or queries, contact the author.
Adam Kennedy <email@example.com>
Copyright 2003 - 2009 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
Module Install Instructions
For more information on module installation, please visit the detailed CPAN module installation guide.