Global symbol requires explicit package name? Why has this occurred and what are various cases that can cause this error?
You are using the use strict; statement meaning your codes have to be within the regulations of writing perl commands.
use strict;