Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Perl script accessing a properties file

by jettero (Monsignor)
on May 21, 2007 at 10:48 UTC ( [id://616526]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-18 18:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found