in reply to Re: hash question
in thread hash question

Wouldn't it be more careful to look for a literal "." rather than any character?

In other words, use

/(\w+)\.(\d+)\s*=\s*(.*)/
rather than use
/(\w+).(\d+)\s*=\s*(.*)/

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^3: hash question
by toolic (Bishop) on Aug 24, 2011 at 00:23 UTC
    Wouldn't it be more careful to look for a literal "." rather than any character?
    Yes, that is what I meant to do. I forgot to back-whack the .