[datou@bing pl]$ cat test2.pl
#!/usr/bin/perl
printf "请问您尊姓大名?";
$name=;
chop($name);
printf "你好,$name,欢迎光临网上教室!\n";
[datou@bing pl]$ perl test2.pl
syntax error at test2.pl line 3, near "=;"
Execution of test2.pl aborted due to compilation errors.
[datou@bing pl]$ chmod +x test2.pl
[datou@bing pl]$ ./test2.pl
syntax error at ./test2.pl line 3, near "=;"
Execution of ./test2.pl aborted due to compilation errors.
[datou@bing pl]$