Data-ICal-RDF
view release on metacpan or search on metacpan
lib/Data/ICal/RDF.pm view on Meta::CPAN
# this is a helper for BINARY values.
sub _decode_property {
my $prop = shift;
my $enc = uc($prop->parameters->{ENCODING} || 'BASE64');
if ($enc eq 'BASE64') {
# for some reason base64 is not built into Data::ICal.
return MIME::Base64::decode($prop->value);
}
elsif ($enc eq 'QUOTED-PRINTABLE') {
# QP *is* built in, however.
return $prop->decoded_value;
}
else {
return;
}
}
# these get run as faux methods and their job is to insert statements
# into the temporary store.
my %VALS = (
BINARY => sub {
( run in 1.731 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )