in reply to Re^2: Problem with array
in thread Problem with array

Further to Corions' most salient observations, I would suggest the use of
use warnings; use strict;
In that way, you'd discover or, more accurately perl would tell you, that certain of the variables are not declared and initialised before use e.g. $localidade ...

A user level that continues to overstate my experience :-))