for (@data) { # remove leading/trailing whitespace s/^\s*//; s/\s*$//; }