Search results for "dist:For-Else for::else"
For::Else - Enable else blocks with foreach blocks
We iterate over a list like this: foreach my $item ( @items ) { do_something( $item ); } However I find myself needing to accommodate for the exceptional case when the list is empty: if ( @items ) { foreach my $item ( @items ) { do_something( $item )...
ALFIE/For-Else-v1.0.0 - 15 Oct 2012 12:33:15 UTC