in reply to Perl script accessing a properties file

See How do I post a question effectively?

Generally, you'll find that people here will go out of their way to avoid writing your program for you — they might even offer to present their "rate card." Normally you would present code that you wrote that doesn't work and ask about it. Or ask how to approach a problem. Things like that.

However...

my %o; open my $in, "abc.properties" or die $!; while(<$in>) { $o{$1}=$2 while m/(\S+)=(\S+)/g; } close $in;

-Paul

Replies are listed 'Best First'.
Re^2: Perl script accessing a properties file
by Anonymous Monk on Jul 01, 2009 at 06:43 UTC
    thanks paul it was a gr8 help indeed