#!/usr/local/bin/perl use strict; use Data::Dumper; my %info = map { /^(\S+)\s*=\s*"?(.+?)"?$/ } <DATA>; print Dumper( \%info ); __DATA__ key1="value1" key2=value2 key3 = value3 key4 =value4 key5 = "value5"
In reply to Re: Reading .ini files
by Wonko the sane
in thread Reading .ini files
by martymart
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |