programming-examples/perl/Statement/unless statement.pl
2019-11-15 12:59:38 +01:00

7 lines
157 B
Perl

#!/usr/local/bin/perl -w
while (<STDIN>)
{
chop;
print "I have found what I'm looking for: <$_>\n" unless $_ ne "Tom";
}