'$variable = $class->{styles}' and styles does not exist under class in 4.4 - you're upgrading from 4.0 is my guess.? The reply to Steve had nothing to do with alterring mapscript.pm but rather that the docs had/have a typo. Lowell