+++ - Thu Nov 10 21:32:08 2005 @@ -536,7 +536,7 @@ sub _print_and_exit { my ($pod, $paged) = @_; - if (-t *STDOUT and eval { require POD::Text }) { + if (-t *STDOUT and eval { require Pod::Text }) { if ($paged) { eval { require IO::Page } or eval { require IO::Pager::Page }; } @@ -1218,11 +1218,11 @@ This argument cause the program to print the complete POD documentation for the program and exit. If the standard output stream is connected to -a terminal and the POD::Text module is available, the POD is formatted +a terminal and the Pod::Text module is available, the POD is formatted before printing. If the IO::Page or IO::Pager::Page module is available, the formatted documentation is then paged. -If standard output is not connected to a terminal or POD::Text is not +If standard output is not connected to a terminal or Pod::Text is not available, the POD is not formatted. =item --version

Welcome, ladies and gentlemen, to The Perl Gallery.

This evening we take look at the unholy mix of [doc://map] and [doc://return].

Let's begin with the argument-less form of return. How often have we seen a routine that ends in a plain return;? "Oh, that just returns undef." Really? Consider this: sub nasty { if ( $_[ 0 ] % 3 ) { return $_[ 0 ]; } else { return; } } my @x = map nasty( $_ ), 1..10; Quick, how many elements in @x? 7 or 10?