Padre::Transform - Padre Document Transform API
This is the base class for the Padre transform API.
I'll document this more later...
-- Adam K
A default constructor for transform objects.
Takes arbitrary key/value pair parameters and returns a new object.
my $delta = $transform->scalar_delta($input_ref);
The scalar_delta method takes a reference to a SCALAR as the only parameter and changes the document.
scalar_delta
SCALAR
If the transform class does not implement a scalar_delta itself the default implementation will pass the call through to scalar_scalar and then convert the result to a Padre::Delta object itself.
scalar_scalar
Returns a new Padre::Delta as output, or throws an exception on error.
my $output_ref = $transform->scalar_scalar($input_ref);
The scalar_scalar method takes a reference to a SCALAR as the only parameter and changes the document.
Returns a new reference to a SCALAR as output, false if there is no change to the document, or throws an exception on error.
Copyright 2008-2016 The Padre development team as listed in Padre.pm.
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.
To install Padre, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Padre
CPAN shell
perl -MCPAN -e shell install Padre
For more information on module installation, please visit the detailed CPAN module installation guide.