The array inside the angle brackets is a glob, (see perldoc -f glob) and while you probably could get away with using that for an array of alpha-numeric strings, things will behave much differently if there are any shell expansion metacharacters in it.
You probably will not get what you expect if you use anything more complicated than a single array of alpha-numeric strings.
my @A = qw/a b c/;
my @B = qw/1 2 3/;
print "$_\n" for <@A,@B>;
print '*' x 10, "\n";
print "$_\n" for (@A,@B);
- Yes it is documented
- Yes, there are gotchas, especially if you are abusing it for the wrong reasons.
- Yes, I have used globs in several scripts, though I used them for their correct purpose, not for their side effects