Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Problem with PPI HereDoc's

by Eliya (Vicar)
on Nov 20, 2011 at 22:02 UTC ( #939107=note: print w/ replies, xml ) Need Help??


in reply to Problem with PPI HereDoc's

... .$HereDoc_o->terminator() ...

What happens if you remove that line (i.e. don't explicitly add the terminator)?

I don't have PPI installed, so this is just a guess... but based on your problem description this is first thing I would try :)


Comment on Re: Problem with PPI HereDoc's
Download Code
Replies are listed 'Best First'.
Re^2: Problem with PPI HereDoc's
by clueless newbie (Hermit) on Nov 21, 2011 at 01:06 UTC

    Right you are!

    It seemed to me that without that terminator the document being passed to the PPI::Document->new() would fail to parse. But having tried your recommendation --- I got what was expected! So with your change the script can be used to Find-And-Replace-HereDocs. Modify to suit yourself and enjoy!

    Thanks again!

    Clueless

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://939107]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (13)
As of 2015-08-03 15:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (45 votes), past polls