in reply to Premature end of script error

Why the scripts dies prematurely although 'perl -c admin.pl' finds it syntactically correct

Syntactical correctness does not protect one from runtime errors.

C:\temp>perl -cle "print 1/<>" -e syntax OK C:\temp>perl -le "print 1/<>" 2 0.5 C:\temp>perl -le "print 1/<>" 0 Illegal division by zero at -e line 1, <> line 1.