- or download this
#! perl -slw
use strict;
...
print "$_"; # print this file/directory's name
}
__END__
- or download this
#! perl -slw
use strict;
...
my @files = glob("*");
print "Files matched via glob pattern *: @files\n";
__END__
- or download this
#! perl -slw
use strict;
...
}
}
__END__
- or download this
if ($filename =~ /.txt/)
- or download this
if ($filename =~ /\.txt/)