aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-098/simon-proctor/raku/ch-1.raku2
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-098/simon-proctor/raku/ch-1.raku b/challenge-098/simon-proctor/raku/ch-1.raku
index e015d35687..098a789083 100644
--- a/challenge-098/simon-proctor/raku/ch-1.raku
+++ b/challenge-098/simon-proctor/raku/ch-1.raku
@@ -22,7 +22,7 @@ say "Self referential code is fun right?";
# While we have a truthy input
while ( my $val = prompt( "How many characters should I print? " ) ) {
my $rval = $val.Int();
- if ( $rval ~~ $val ) {
+ if ( $rval && $rval ~~ $val ) {
if ( $rval < 0 ) {
if ( $handle.tell() >= $rval.abs ) {
$handle.seek($rval, SeekFromCurrent );