Catmandu::Fix::parse_text - parses a text into an array or hash of values
# date: "2015-03-07" parse_text(date, '(\d\d\d\d)-(\d\d)-(\d\d)') # date: # - 2015 # - 03 # - 07 # date: "2015-03-07" parse_text(date, '(?<year>\d\d\d\d)-(?<month>\d\d)-(?<day>\d\d)') # date: # year: "2015" # month: "03" # day: "07" # date: "abcd" parse_text(date, '(\d\d\d\d)-(\d\d)-(\d\d)') # date: "abcd"
Catmandu::Fix
Catmandu::Importer::Text
To install Catmandu, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu
CPAN shell
perl -MCPAN -e shell install Catmandu
For more information on module installation, please visit the detailed CPAN module installation guide.