my ($x);
map {if (/^msg=(.*)/) {$x.=$1}} @A;
if ($x) {...do something...}(
I am sure that this will work in a mod_perl environment and the "undef" is not necessary. When you declare the variable with the "my" the variable is reinitialized.
You are right though, you would have to search for all accumulating functions ie (.=, +=, and push) and be sure all variables are declared. I have learned that "use strict;" while annoying is your friend in the long run
Percy writes:
So, can I put you in charge of the EvC Forum Mod-Perl Conversion Project?
Sure, one of my trades is a Perl slinger. However, I am booked right now but maybe this fall or winter.