- or download this
while (<$FH>) {
print; # prints the current line using $_ implicitly
}
- or download this
while ( my $filename = readdir(DH) ) {
next if $filename eq '.' or $filename eq '..';
...
close FH or die "close: $!\n";
}
}
- or download this
if ( -f 'The Bravery-Believe.txt' ) {
# do something
}
- or download this
my $wanted = 'The Bravery-Believe.txt';
...
}