in reply to Words and Numbers to hash
No, it won't as I think will be obvious if you examine it. At the very least you should have keys with spaces in them which your regex won't cope with. Nor will it return the keys and values as separate fields.
This appears to work fine for your sample input:
my %stats = $content =~ /\s*([\w\s\/]+)\s+([\d.]+)/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Words and Numbers to hash
by mrras25 (Acolyte) on Jan 09, 2014 at 00:08 UTC | |
by AnomalousMonk (Archbishop) on Jan 09, 2014 at 01:46 UTC |