summaryrefslogtreecommitdiff
path: root/t/op/tie_fetch_count.t
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2013-03-25 01:22:35 -0300
committerKarl Williamson <public@khwilliamson.com>2013-03-26 21:06:52 -0600
commit0f539b13d39feb3bad9b2c86a57dea5035124802 (patch)
treea6481e6c7d13e8681c8bb93e4d8a9ebe563f5598 /t/op/tie_fetch_count.t
parent629deb5825bff527bfd3021146f63d64c72b50ce (diff)
downloadperl-0f539b13d39feb3bad9b2c86a57dea5035124802.tar.gz
Make smartmatch, given & when experimental
Diffstat (limited to 't/op/tie_fetch_count.t')
-rw-r--r--t/op/tie_fetch_count.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/op/tie_fetch_count.t b/t/op/tie_fetch_count.t
index 6b2eb792e3..c3ed030cfd 100644
--- a/t/op/tie_fetch_count.t
+++ b/t/op/tie_fetch_count.t
@@ -151,7 +151,10 @@ $dummy = -e -e -e $var ; check_count '-e -e';
$_ = "foo";
$dummy = $var =~ m/ / ; check_count 'm//';
$dummy = $var =~ s/ //; check_count 's///';
-$dummy = $var ~~ 1 ; check_count '~~';
+{
+ no warnings 'experimental::smartmatch';
+ $dummy = $var ~~ 1 ; check_count '~~';
+}
$dummy = $var =~ y/ //; check_count 'y///';
$var = \1;
$dummy = $var =~y/ /-/; check_count '$ref =~ y///';