Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Unwrapping values in a template

by Anonymous Monk
on Nov 14, 2003 at 14:25 UTC ( [id://307054]=note: print w/replies, xml ) Need Help??


in reply to Unwrapping values in a template

$/ = ""; while(<DATA>){ s#=[^\n\S]*\n(?!.*=)(?!</template>)#= #g; print; } __END__ <template> foo = Yes bar = 0 blort = home_url = http://www.foo.com/some/really/long/url zoo = xxx _url = http://www.foo.com/some/really/long/url boo = </template>

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-26 03:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found