#!/usr/bin/perl
use Modern::Perl;
my @arr = glob("*.*");
for my $line(@arr) {
say $line;
}
Also, as noted by Corion, perlop is relevant.
If what the angle brackets contain is a simple scalar variable (e.g.,
+<$foo>), then that variable contains the name of the filehandle to in
+put from, or its typeglob, or a reference to the same. For example:
$fh = \*STDIN;
$line = <$fh>;
If what's within the angle brackets is neither a filehandle nor a simp
+le scalar variable containing a filehandle name, typeglob, or typeglo
+b reference, it is interpreted as a filename pattern to be globbed, a
+nd either a list of filenames or the next filename in the list is ret
+urned, depending on context.
Above blockquote added as an update, for future readers
TY, both! | [reply] [d/l] [select] |