aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad S Anwar <Mohammad.Anwar@yahoo.com>2019-10-27 11:02:12 +0000
committerGitHub <noreply@github.com>2019-10-27 11:02:12 +0000
commitb06bfa34831dcbd0f6211c4a07b4cb0d8450d94a (patch)
tree66e824aa56d4bc08d4417c988fdd5de17996efd7
parentd645881edf9f69970703fcbbb156d1f836552495 (diff)
parent11ad98e42010b7df0ada5142dbeb7be938365fef (diff)
downloadperlweeklychallenge-club-b06bfa34831dcbd0f6211c4a07b4cb0d8450d94a.tar.gz
perlweeklychallenge-club-b06bfa34831dcbd0f6211c4a07b4cb0d8450d94a.tar.bz2
perlweeklychallenge-club-b06bfa34831dcbd0f6211c4a07b4cb0d8450d94a.zip
Merge pull request #848 from choroba/ech31c
Use only the needed subset of "no strict"
-rwxr-xr-xchallenge-031/e-choroba/perl5/ch-2.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-031/e-choroba/perl5/ch-2.pl b/challenge-031/e-choroba/perl5/ch-2.pl
index ca9c5dc731..b7b2594f4d 100755
--- a/challenge-031/e-choroba/perl5/ch-2.pl
+++ b/challenge-031/e-choroba/perl5/ch-2.pl
@@ -3,7 +3,7 @@ use warnings;
use strict;
my $var_name = shift;
-{ no strict;
+{ no strict 'refs';
${ $var_name } = "Don't try this at home!";
print "\$$var_name: ", $$var_name, "\n";
}