diff options
author | Autrijus Tang <unknown> | 2003-01-24 22:39:06 +0000 |
---|---|---|
committer | hv <hv@crypt.org> | 2003-02-10 01:43:12 +0000 |
commit | b97616431c42ffbbb12f97bf297caee34b9f27a9 (patch) | |
tree | a93448d0cdd2e8b48849ab6874dc277a835cafeb /lib/if.t | |
parent | bea985324a3cd895f8e0a0c38e90ab3d09433415 (diff) | |
download | perl-b97616431c42ffbbb12f97bf297caee34b9f27a9.tar.gz |
fix for C< use if qw/ 1 open :utf8 / > based on:
Subject: [perl #20536] use if 1, open => ':utf8' fails
From: Autrijus Tang (via RT) <perlbug-followup@perl.org>
Message-Id: <rt-20536-49670.13.2464320257255@bugs6.perl.org>
p4raw-id: //depot/perl@18684
Diffstat (limited to 'lib/if.t')
-rw-r--r-- | lib/if.t | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -5,7 +5,7 @@ BEGIN { @INC = '../lib'; } -use Test::More tests => 5; +use Test::More tests => 6; my $v_plus = $] + 1; my $v_minus = $] - 1; @@ -27,3 +27,5 @@ ok( (not defined eval "use if ($v_plus > \$]), strict => 'refs'; \${'f'} = 12" ok( eval "use if 1, Cwd; cwd() || 1;", '"use if" with a true condition, module, no arguments, exports'); +ok( eval "use if qw/ 1 if 1 strict subs /; \${'f'} = 12" eq 12, + '"use if" with a module named after keyword'); |