Global symbol "$regex" requires explicit package name at ./1.pl line 11. Execution of ./1.pl aborted due to compilation errors.