kayahk has asked for the wisdom of the Perl Monks concerning the following question:
thankssub load_config { my $self = shift; open(my $fh, $self->{config_file}) or croak "open error".$self->{c +onfig}; %{$self->{info}} = map { chomp; split'='; } <$fh>; close($fh); return $self; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: map a hash with a default value or exclude
by GrandFather (Saint) on Sep 13, 2011 at 01:17 UTC | |
|
Re: map a hash with a default value or exclude
by toolic (Bishop) on Sep 13, 2011 at 00:33 UTC | |
|
Re: map a hash with a default value or exclude
by kcott (Archbishop) on Sep 13, 2011 at 02:59 UTC | |
by GrandFather (Saint) on Sep 13, 2011 at 03:12 UTC | |
by PrakashK (Pilgrim) on Sep 13, 2011 at 19:09 UTC | |
|
Re: map a hash with a default value or exclude
by jethro (Monsignor) on Sep 13, 2011 at 01:18 UTC | |
|
Re: map a hash with a default value or exclude
by jwkrahn (Abbot) on Sep 13, 2011 at 05:02 UTC |