Query: text::quoted
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Quoted(3pm) User Contributed Perl Documentation Quoted(3pm)NAMEText::Quoted - Extract the structure of a quoted mail messageSYNOPSISuse Text::Quoted; my $structure = extract($text);DESCRIPTION"Text::Quoted" examines the structure of some text which may contain multiple different levels of quoting, and turns the text into a nested data structure. The structure is an array reference containing hash references for each paragraph belonging to the same author. Each level of quoting recursively adds another list reference. So for instance, this: > foo > # Bar > baz quux turns into: [ [ { text => 'foo', quoter => '>', raw => '> foo' }, [ { text => 'Bar', quoter => '> #', raw => '> # Bar' } ], { text => 'baz', quoter => '>', raw => '> baz' } ], { empty => 1 }, { text => 'quux', quoter => '', raw => 'quux' } ]; This also tells you about what's in the hash references: "raw" is the paragraph of text as it appeared in the original input; "text" is what it looked like when we stripped off the quotation characters, and "quoter" is the quotation string.CREDITSMost of the heavy lifting is done by a modified version of Damian Conway's "Text::Autoformat".COPYRIGHTCopyright (C) 2002-2003 Kasei Limited Copyright (C) 2003-2004 Simon Cozens Copyright (C) 2004 Best Practical Solutions, LLC This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2010-03-15 Quoted(3pm)
Related Man Pages |
---|
text::glob(3) - centos |
text::glob5.18(3) - mojave |
text::glob(3) - mojave |
text::glob(3pm) - debian |
text::recordparser::object(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Extract Pattern Sequence |
SoftlabsAV: 0.9.2 released |
Easy way to pull a paragraph from a text file? |
How to extract a paragraph containing a given string? |
Text mode AF spectrum analyser. |