in reply to Global, Local, what the..?

Subroutines automatically return the value of the last statement executed. return is often optional.

map is iterating over the elements in @_ (each element is in $_) and it's substituting as appropriate and passing the changed value to @fields. You can read through this node for some good examples.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.