in reply to Win32 Opening files

there's a little PSI::ESP in my answer, so consider yourself warned.
If @_ is going to be a list of files, then my $mail = "@_"; will create a string that contains all the elements of @_ separated by spaces. It's sort of a shorthand for  join (" ", @_);. so you probably want to run through @_ in a foreach or while loop.