trict;
use warnings;
our $VERSION = '1.00';
use base qw(Exporter);
use File::HomeDir qw();
use JSON;
our @EXPORT_OK = qw(debug toodledo_encode toodledo_decode toodledo_time
arg_encode home
PP_TOODLEDO_DEBUG};
}
sub arg_encode
{
local $_ = shift;
s/\n/\\n/g;
ref $_
? encode_json( $_ )
: $_;
}
sub toodledo_encode
{
local $_ = shift;
s/&/%26/g;
s/;/%3B/g;
$_;
}
1;
__END__
=head1 NAME
=head1 SYNOPSIS
=head1 DESCRIPTION
=head1 METHODS
=head2 arg_encode
JSON encoding for parameters submitted to the API.
=head2 home
User's home directory. Broken out so