in reply to lvalue - howto fix?

$ok = "Y" if ($zipcheck->read($arczip)== AZ_OK);

First you need a comparative operator to check AZ_OK, and is AZ_OK a constant you've defined elsewhere?

-Nitrox