On Fri, Mar 14, 2008 at 8:08 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote:
> Kashif Salman wrote:
> > I have a config file with stanzas that I need to parse,
>
>
>
>
> > define name1{
> > variable=value
> > variable2=value2
> > ..
> > }
> > define name2{
> > variable=value
Kashif Salman wrote:
I have a config file with stanzas that I need to parse,
define name1{
variable=value
variable2=value2
..
}
define name2{
variable=value
variable2=value2
...
}
use Data::Dumper;
my %HoH;
{
local $/ = "}\n";
while (<>) {
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?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/