Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Modifying Stanz...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 10737 of 11992
Post > Topic >>

Modifying StanzaFile

by kashifsalman@[EMAIL PROTECTED] (Kashif Salman) Mar 14, 2008 at 06:56 PM

I have a config file with stanzas that I need to parse, going thorugh
CPAN I came across StanzaFile which works on stanzas like so

[name]
         variable=value
         variable1=value1
         ...
[name1]
         variableA=valueA
         variable1A=value1A

But my stanzas look like:

define name1{
    variable=value
    variable2=value2
...
}
define name2{
    variable=value
    variable2=value2
....
}

How can I modify the StanzaFile to work with my config file? or would
there be any other way to parse the file? Not only I have a different
stanza beginning but I also have an ending delimiter that doesn't
exist in the original format. I looked at StanzaFile::GRub which talks
a little about modifying StanzaFile but it doesn't make much sense to
me. Any ideas?
 




 3 Posts in Topic:
Modifying StanzaFile
kashifsalman@[EMAIL PROTE  2008-03-14 18:56:14 
Re: Modifying StanzaFile
noreply@[EMAIL PROTECTED]  2008-03-15 04:08:05 
Re: Modifying StanzaFile
kashifsalman@[EMAIL PROTE  2008-03-14 23:42:55 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 11:06:12 CDT 2008.