GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  FOREST::TREE::BUILDER::SIMPLETEXTFILE (3)

.ds Aq ’

NAME

Forest::Tree::Builder::SimpleTextFile - Parse trees from indented ASCII files

CONTENTS

SYNOPSIS



    use Path::Class;

    my $file = file($path);

    my $builder = Forest::Tree::Builder::SimpleTextFile->new(
        fh => $file->openr,
    );

    my $tree = $builder->tree;



DESCRIPTION

This module replaces Forest::Tree::Reader::SimpleTextFile with a declarative api instead of an imperative one.

ATTRIBUTES

fh The filehandle to read from.

Required.

parser A coderef that parses a single line from fh and returns the node depth and its value.

Defaults to space indented text. See also tab_width.

tab_width The indentation level for the default parser. Defaults to 4, which means that four spaces equate to one level of nesting.

BUGS

All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.

AUTHOR

Yuval Kogman

COPYRIGHT AND LICENSE

Copyright 2008-2014 Infinity Interactive, Inc.

<http://www.iinteractive.com>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 FOREST::TREE::BUILDER::SIMPLETEXTFILE (3) 2013-12-18

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.