in reply to Variables in eval funcation

That error is caught by perl at compile time, as the line in question will never work. Execution is aborted before it starts.
> perl -MO=Deparse -e 'eval { $cc = 4/0; };' Illegal division by zero at -e line 1.