Language::Farnsworth::Output - Wrapper class for making output simpler
This class is just a wrapper for some code to convert the data into a format more usable for perl. Eventually all the code will be spun off into the Language::Farnsworth::Value subclasses so that the code can be used for serialization and loading.
use Language::Farnsworth; my $hubert = Language::Farnsworth->new(); my $result = $hubert->runString("10 km -> miles"); # $result here is an object of Language::Farnsworth::Output my $result = $hubert->runFile("file.frns"); print $result;
This has only one method that a user should be aware of, tostring; you can call this directly on the object, e.g. $result->tostring()
tostring
Ryan Voots <simcop@cpan.org>
Copyright (C) 2010 by Ryan Voots
This library is free software; It is licensed exclusively under the Artistic License version 2.0 only.
To install Language::Farnsworth, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Language::Farnsworth
CPAN shell
perl -MCPAN -e shell install Language::Farnsworth
For more information on module installation, please visit the detailed CPAN module installation guide.