diff --git a/dist/if/if.pm b/dist/if/if.pm index 1985df4db188..d1cbd00f351f 100644 --- a/dist/if/if.pm +++ b/dist/if/if.pm @@ -1,6 +1,6 @@ package if; -$VERSION = '0.0606'; +$VERSION = '0.0607'; sub work { my $method = shift() ? 'import' : 'unimport'; @@ -50,6 +50,15 @@ The use of C<< => >> above provides necessary quoting of C. If you don't use the fat comma (eg you don't have any ARGUMENTS), then you'll need to quote the MODULE. +If you wanted ARGUMENTS to be an empty list, i.e. have the effect of: + + use MODULE (); + +you can't do this with the C pragma; however, you can achieve +exactly this effect, at compile time, with: + + BEGIN { require MODULE if CONDITION } + =head2 EXAMPLES The following line is taken from the testsuite for L: