Eric Windisch

NAME

Data::SExpression::Xen - Lisp-style S-Expression parser compatable with Xen

VERSION

This documentation refers to Data::SExpression::Xen version 0.0.1

SYNOPSIS

Most users will wish to create a hash reference as such:

  use Data::SExpression::Xen;
  my $sxp = Data::SExpression::Xen->new();
  my $hashref = $sxp->as_hash($string);

It is also possible to create an array reference:

  use Data::SExpression::Xen;
  my $sxp = Data::SExpression::Xen->new();
  my @array = $sxp->as_array($string);

METHODS

new

Returns a new Data::SExpression::Xen object.

as_array (SCALAR)

Accepts string argument representing an S-Expression. Returns an array reference.

as_hash (SCALAR)

Accepts string argument representing an S-Expression. Returns a hash reference.