aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLakpa Tashi Bhutia <lakpatashi@users.noreply.github.com>2023-11-25 11:08:25 +0530
committerGitHub <noreply@github.com>2023-11-25 11:08:25 +0530
commit54b70c15771e829427df9c4c27e9d2bc628e1b59 (patch)
treee6124b8d786b23472b1e3b9f44b660461fc9d455
parentea6fe5109935b1ce8bc3304411552de65705ee27 (diff)
downloadperlweeklychallenge-club-54b70c15771e829427df9c4c27e9d2bc628e1b59.tar.gz
perlweeklychallenge-club-54b70c15771e829427df9c4c27e9d2bc628e1b59.tar.bz2
perlweeklychallenge-club-54b70c15771e829427df9c4c27e9d2bc628e1b59.zip
Update ch-2.pl
-rwxr-xr-xchallenge-003/lakpatashi/perl/ch-2.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/challenge-003/lakpatashi/perl/ch-2.pl b/challenge-003/lakpatashi/perl/ch-2.pl
index 5caa9471e1..8713932667 100755
--- a/challenge-003/lakpatashi/perl/ch-2.pl
+++ b/challenge-003/lakpatashi/perl/ch-2.pl
@@ -1,5 +1,6 @@
#!/usr/bin/perl
+use v5.10;
use strict;
use warnings;
@@ -44,4 +45,4 @@ sub printPascal_v2 {
@pattern = ( 1, map( $pattern[$_-1]+$pattern[$_], 1..$#pattern ), 1 ) ;
say ' 'x($numLine-$i),"@pattern";
}
-} \ No newline at end of file
+}