aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsaiftynet <saiftynet@gmail.com>2020-02-26 21:04:59 +0000
committersaiftynet <saiftynet@gmail.com>2020-02-26 21:04:59 +0000
commit485b01b20fe946871801e19d6b7951aebdadbf5d (patch)
tree7028f9c608edee843579d500e5534895a525ad15
parente804d5fde42264bac8bfd6af9844e958476abb8d (diff)
downloadperlweeklychallenge-club-485b01b20fe946871801e19d6b7951aebdadbf5d.tar.gz
perlweeklychallenge-club-485b01b20fe946871801e19d6b7951aebdadbf5d.tar.bz2
perlweeklychallenge-club-485b01b20fe946871801e19d6b7951aebdadbf5d.zip
Challenge-049 solutions by saiftynet submitted using EZPWC
-rw-r--r--challenge-049/saiftynet/perl/ch-1.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-049/saiftynet/perl/ch-1.pl b/challenge-049/saiftynet/perl/ch-1.pl
index b9598fa2c6..956d951ef3 100644
--- a/challenge-049/saiftynet/perl/ch-1.pl
+++ b/challenge-049/saiftynet/perl/ch-1.pl
@@ -20,7 +20,7 @@ else{ # interactive operation starts if no commandline parameter
while (1){
print "Enter a number to process, or a non-number to quit >>";
chomp( $input = <STDIN>);
- last if $input=~/[^\d]/;
+ last if not $input or $input=~/[^\d]/;
method2($input);
};
}