Hub::Parse::Hash - Refactor of HashFile


hub-standard documentation  | view source Contained in the hub-standard distribution.

Index


NAME

Top

Hub::Parse::Hash - Refactor of HashFile

SYNOPSIS

Top



  TODO: Don't set structure values to scalar references
  TODO: Escape characters
  TODO: Write multiline values as scalar structures







DESCRIPTION

Top

PUBLIC METHODS

Top

hparse

Parse text into perl data structures


 Usage: hparse \$text, [options]
options:
  -as_array=1         # Treat text as an array list (and return an array ref)
  -hint=hint          # Usually a filename, used in debug/error output




hprint

Format nested data structure as string


 Usage: hprint [options]




options:



  -as_ref => 1       Return a reference (default 0)




INTERNAL METHODS

Top

_hprint

Implementation of hprint

_trim_whitespace

_escape

Esacape patterns which would be interpred as control characters

_unescape

Remove protective backslashes

_get_indent

Get the indent for formatting nested sructures


 Usage: _get_indent $level




_trace

Debug output

_get_hint

Context information for error messages


 Usage: _get_hint $line_num, $line_text




AUTHOR

Top

Ryan Gies (ryangies@livesite.net)

COPYRIGHT

Top

UPDATED

Top

08/02/2007


hub-standard documentation  | view source Contained in the hub-standard distribution.