Fred-Fish-DBUG
view release on metacpan or search on metacpan
lib/Fred/Fish/DBUG/Tutorial.pm view on Meta::CPAN
********************
foreach ( some_function ( qw /1 0 -1/ ) ) { ... }
The interesting part of the B<fish> log:
| <main::some_function - return ([1], [0], [-1])
Notice it was smart enough to return a list of values. And the loop had three
iterations.
********************
while ( some_function ( qw /1 0 -1/ ) ) { ... }
The interesting part of the B<fish> log:
| <main::some_function - return ([1])
It was smart enough to tell it to return just the first value instead of a list
( run in 0.520 second using v1.01-cache-2.11-cpan-71847e10f99 )