Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Example Of Using CAM::PDF Like HTML::TokeParser

by pvaldes (Chaplain)
on Oct 08, 2011 at 21:37 UTC ( #930389=note: print w/replies, xml ) Need Help??

in reply to Example Of Using CAM::PDF Like HTML::TokeParser

ok then,

$po->traverse(1, $a_node_name, $function, $somedata);

the first field after traverse is 1 (traverse this node) or 0 (don't do this, threat this link as "dead")

The second field is the node name to apply

The third is an action to do when you pass through this node, you can use here as argument several functions provided with the module.

 (i.e \&_changeRefKeysCB, \&_abbrevInlineImageCB, \&_changeStringCB or \&_getRefListCB)

and fourth field is the data implied in this action (i.e $im_a_list)

Hope this helps, bye

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://930389]
[Corion]: Text::CSV_XS for all your CSV file parsing needs. Other than that, what problems do you have with perlre, and capturing everything after the comma? Also, index and substr would also work.
[choroba]: my ($value) = $string =~ /.*,(.*)/
[choroba]: The .* at the beginning matches the longest possible substring, so it eats any previous commas
[choroba]: But for CSV, use appropriate modules

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2018-05-27 08:54 GMT
Find Nodes?
    Voting Booth?