[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Omaha.pm] map, grep in the debugger



2010/6/29 Jay Hannah <jhannah@omnihotels.com>:

[. . .]

> DB<3> x grep { /DAY/ } keys %hash
>    0  'DAYTIME'
>    1  'DAYLIGHT'

[. . .]

> DB<4> x map { $_ => $hash{$_} } grep { /DAY/ } keys %hash
>    0  'DAYTIME'
>    1  3
>    2  'DAYLIGHT'
>    3  2

I can't believe I never thought about how useful map and grep would be
in the debugger.

That is really slick. ;-)

> j

-- 
Christopher