use strict; use warnings; ... gives me the error ... I'm trying to ...

I also tried ...