|We don't bite newbies here... much|
Re: How can i debug compound map/grep statements just using print?by LanX (Chancellor)
|on Dec 01, 2012 at 18:22 UTC||Need Help??|
please, next time post clear questions with isolated code examples.
map and grep use code blocks which depend on the return value of the last statement.
that means you can use the same techniques used for debugging subroutines, e.g. you can use print anywhere within these blocks, as long as it doesn't change the returned value.
you can also split deeply nested maps and greps in smaller chunks filling temporary arrays and dump these results with Data::Dumper.
and if you really need it very often, use something which assures the same list as in- and output