perl -wle'print $c' Name "main::c" used only once: possible typo at -e line 1. Use of uninitialized value $c in print at -e line 1.