Data::Object::Data

Data-Object Data Class

package Command;

use Data::Object::Data;

=help

fetches results from the api

=cut

my $data = Data::Object::Data->new;

my $help = $data->content('help');
# fetches results ...

my $token = $data->content('token');
# token: the access token ...

my $secret = $data->content('secret');
# secret: the secret for ...

my $flag = $data->contents('flag');
# [,...]

__DATA__

=flag secret

secret: the secret for the account

=flag token

token: the access token for the account

=cut

This package provides methods for parsing and extracting pod-like data sections from any file or package. The pod-like syntax allows for using these sections anywhere in the source code and Perl properly ignoring them.

4 POD Errors

The following errors were encountered while parsing the POD:

Around line 8:

Unknown directive: =name

Around line 12:

Unknown directive: =abstract

Around line 16:

Unknown directive: =synopsis

Around line 54:

Unknown directive: =description