in reply to On patterns and more
for (@names) { # Use $_ here } [download]
is simply the same as
for $_ (@names) { # Use $_ here } [download]
You can use a different variable if you want
for my $name (@names) { # Use $name here } [download]