App::Dochazka::REST::Util - miscellaneous utilities
Miscellaneous utilities
use App::Dochazka::REST::Util; ...
This module provides the following exports:
Takes a request entity (hashref) - looks for a 'password' property. If it is present, adds a random salt to the request entity and hashes the password with it. If there is no password property, the function does nothing.
Each App::Dochazka::REST resource definition includes a 'documentation' property containing a POD string. Our 'docu/html' resource converts this POD string into HTML with a little help from this routine.
Given an original object and a hashref of possible changed properties, compare the properties in the hashref with the corresponding properties in the original object. If any properties really are changed, update the object. Return the number of properties so changed.
To install App::Dochazka::REST, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Dochazka::REST
CPAN shell
perl -MCPAN -e shell install App::Dochazka::REST
For more information on module installation, please visit the detailed CPAN module installation guide.