Text::Merge

General purpose text/data merging methods in Perl.
Download

Text::Merge Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Steven D. Harris
  • Publisher web site:
  • http://search.cpan.org/~sharris/Text-Merge-0.36/lib/Text/Merge/Lists.pm

Text::Merge Tags


Text::Merge Description

General purpose text/data merging methods in Perl. The Text::Merge package contains general purpose text/data merging methods in Perl.SYNOPSIS $merge = new Text::Merge; $merge->line_by_line(); # query $merge->line_by_line(0); # turn off $merge->line_by_line(1); # turn on $merge->set_delimiters(''); # user defined delims $success = $merge->publish($template, ta); $success = $merge->publish($template, ta, tions); $success = $merge->publish($template, $item); $success = $merge->publish_to($handle, $template, ta); $success = $merge->publish_to($handle, $template, ta, tions); $success = $merge->publish_to($handle, $template, $item); $text = $merge->publish_text($template, ta); $text = $merge->publish_text($template, ta, tions); $text = $merge->publish_text($template, $item); $success = $merge->publish_email($mailer, $headers, $template, ta); $success = $merge->publish_email($mailer, $headers, $template, ta, tions); $success = $merge->publish_email($mailer, $headers, $template, $item); $datahash = $merge->cgi2data(); # if you used "CGI(:standard)" $datahash = $merge->cgi2data($cgi); # if you just used CGI.pmThe Text::Merge package is designed to provide a quick, versatile, and extensible way to combine presentation templates and data structures. The Text::Merge package attempts to do this by assuming that templates are constructed with text and that objects consist of data and functions that operate on that data. Text::Merge is very simple, in that it works on one file and one object at a time, although an extension exists to display lists (Text::Merge::Lists) and Text::Merge itself could easily be extended further.This is not XML and is intended merely to "flatten" the learning curve for non-programmers who design display pages for programmers or to provide programmers with a quick way of merging page templates with data sets or objects without extensive research.The templates can be interpreted "line by line" or taken as a whole. Requirements: · Perl


Text::Merge Related Software