Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Latex::Tom::Node example

by Khen1950fx (Canon)
on Dec 15, 2012 at 21:00 UTC ( #1009010=note: print w/replies, xml ) Need Help??


in reply to Latex::Tom::Node example

And what is "group matching"? Did you mean something like this?
#!/usr/bin/perl use strict; use autodie; use warnings; use LaTeX::TOM; use Data::Dumper::Concise; my $file = 'input.tex'; open my $fh, '<', $file; my $parser = LaTeX::TOM->new; my $tree = $parser->parseFile($file); $tree->getNodesByCondition( sub { my $node = shift; $node->getNextGroupNode; print Dumper($node); } );

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1009010]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2017-11-21 05:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (295 votes). Check out past polls.

    Notices?