in reply to Loading a Hash directly from a Regex
%CpmRC = map /^(\d+)\W\d+\W\d+\W(\d+)/, <DATA>; # or... %CpmRC = map { (/\d+/g)[0,3] } <DATA>; # reads a bit nicer
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker, who'd like a (from-home) job
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
|---|