Perl can check the syntax using "-c" option.
perl -c script.pl
Are you surprised to hear that Perl has syntax checking?
This means Perl is not interpreter language line by line.
Young people maybe don't know this because there is not the correct knowledge of Perl and appropriate interest to Perl.