in reply to Using array variable in regex substitution

First, note that your code is a little garbled because you didn't put it within code tags.

For your problem, is it because you have $country_array[224} with a closing brace, not bracket?

Replies are listed 'Best First'.
Re^2: Using array variable in regex substitution
by tunafish (Beadle) on Nov 11, 2011 at 23:07 UTC

    Sorry about the code part, I'm still new to perlmonks :)

    And yup, you nailed it! A "durrr" moment for sure