Change my primary technology from perl to java/.net/.... (which is not easy in this part of world, if you are a perl developer today you are a perl developer forever.
“You are not the only movie-star who feared becoming “type-cast.” Self-marketing is always part of this constantly-changing business, and by the way, “the grass is always greener on the other side of the fence.” Don’t worry too much about people in other countries taking your jobs away (especially given that you are ... uhhh....), and don’t worry too much about having to move to another country to find work (unless, of course, you want to move to America where, if you are a highly experienced programmer, you can very easily not-find work). ;-)
Seriously: Master the tools that you currently know, and never, ever stop learning. You are part of a profession where the opportunities for self-learning never end, no matter where in the world you are. I would also suggest that you start working very hard now to groom contacts and professional relationships that do not involve working for the companies who are currently outsourcing work from the USA, even though it might be somewhat difficult to find those companies “where you are planted” and even if it involves a pay cut. Purely as a self-defensive move, because that gravy train is going to dry up completely someday soon, and the lushest green grass quickly turns back into the desert from whence it came.