in reply to Regexing a hash line thing

Is '=>' a valid key? otherwise, I'd just use split:
my ($key, $val) = split /\s*=>\s*/, $text, 2; $Data{$key} = $val;
And then massage $key and $val to remove quotes and escapes, if needed.

-- Dan

Replies are listed 'Best First'.
Re: Re: Regexing a hash line thing
by nutshell (Beadle) on Oct 21, 2002 at 14:40 UTC
    Ah, yes... very good idea!

    let me play with it some :)

    --nutshell