messages from if.pm when invoked with a condition in list
context. Also bump if's VERSION.
p4raw-id: //depot/perl@26078
package if;
-$VERSION = '0.0401';
+$VERSION = '0.05';
sub work {
my $method = shift() ? 'import' : 'unimport';
+ die "Too few arguments to `use if' (some code returning an empty list in list context?)"
+ unless @_ >= 2;
return unless shift; # CONDITION
my $p = $_[0]; # PACKAGE
use MODULE ARGUMENTS;
+Above C<< => >> provides necessary quoting of C<MODULE>. If not used (e.g.,
+no ARGUMENTS to give), you'd better quote C<MODULE> yourselves.
+
=head1 BUGS
The current implementation does not allow specification of the