in reply to populating a HoA with regexp

Readability should be valued over brevity/speed

--linuxkid


imrunningoutofideas.co.cc

Replies are listed 'Best First'.
Re^2: populating a HoA with regexp
by Kenosis (Priest) on Aug 28, 2012 at 21:46 UTC

    Quickly said--and with readable brevity! :)

Re^2: populating a HoA with regexp
by Anonymous Monk on Aug 28, 2012 at 22:04 UTC

    Readability should be valued over brevity/speed

    Learn to speak perl

Re^2: populating a HoA with regexp
by asqwerty (Acolyte) on Aug 29, 2012 at 08:05 UTC

    I think that

    /^($pattern)/ and push @{$dfs{$1}}, $_;

    is readable enough. Maybe even more readable (in a perl way) than my previous solution.