my @all_files = <*>; ## exactly the same as my @all_files = glob "*";
The value between the angle brackets is interpolated similar to a
double-quoted string, which means that Perl variables are expanded to
their current Perl values before being globbed:
my $dir = "/etc";
my @dir_files = <$dir/* $dir/.*>;
Here, we've fetched all the non-dot and dot files from the
designated directory, because $dir has been
expanded to its current value.