in reply to Map not giving me what I thought it would.

What's happening is that map is giving you the result of what happens inside the parentheses, not the final value of $_. The regex matches once each time, so the result is 1 each time. I'm not a frequent map user, but try this (untested) instead:

my @array = map { (split(/^-/,$_))[0] . (split(/^-/,$_))[1] } @ARGV;

I think that'll work, assuming you want your command line arguments in @array whether they have leading hyphens or not, but, even if it does work, it's lousy code. Surely there's a better way, but I'm too tired to see it.

adamsj

They laughed at Joan of Arc, but she went right ahead and built it. --Gracie Allen