Egg::Plugin::YAML - Plugin to treat data of YAML format.


Egg-Release documentation  | view source Contained in the Egg-Release distribution.

Index


NAME

Top

Egg::Plugin::YAML - Plugin to treat data of YAML format.

SYNOPSIS

Top

  use Egg qw/ YAML /;

  my $data= $e->yaml_load($yaml_text);

  print $e->yaml_dump($data);

METHODS

Top

yaml_load([YAML_DATA] or [YAML_FILE_PATH])

The data of the YAML form is made former data and it returns it.

When the character string that doesn't contain changing line is passed, it is treated as passing to the YAML file.

  my $data= $e->yaml_load('/path/to/load_file.yaml');

yaml_dump ([DATA])

DATA is converted into the text of the YAML form and it returns it.

  my $yaml= $e->yaml_dump($data);

SEE ALSO

Top

Egg::Release, Egg::YAML,

AUTHOR

Top

Masatoshi Mizuno <lushe&64;cpan.org>

COPYRIGHT AND LICENSE

Top


Egg-Release documentation  | view source Contained in the Egg-Release distribution.