thanks guys, it's working.
I still dont' understand map too well(along with many other things).. can someone show me a URL that has map tutorial better than http://perldoc.perl.org/functions/map.html ??
Their explanation on how to mix it in with other does not make much sense to me.