programming-examples/perl/Statement/unless statement.pl

7 lines
157 B
Perl
Raw Normal View History

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