Skip to content
This repository has been archived by the owner on Jan 2, 2019. It is now read-only.

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Elizabeth De Vogelaere committed Oct 21, 2015
1 parent bbf65d1 commit 3a2ef56
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions week8/02-nobody.pl
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
my $name = shift || "George";

while (my $line = <DATA>){
chomp $line;
if ($line =~ /Nobody/i){
$line =~ s/Nobody/$name/g;
say $line;
}
print $line;
}

__DATA__
Expand Down

0 comments on commit 3a2ef56

Please sign in to comment.