[Omaha.pm] map, grep in the debugger
Christopher Cashell
topher-pm at zyp.org
Thu Jul 1 10:10:43 PDT 2010
2010/6/29 Jay Hannah <jhannah at 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
More information about the Omaha-pm
mailing list