$ perl -MO=Deparse -we '$x = anything_could_go_here::' Bareword "anything_could_go_here::" refers to nonexistent package at -e line 1. Name "main::x" used only once: possible typo at -e line 1. BEGIN { $^W = 1; } $x = 'anything_could_go_here'; -e syntax OK