1. 创建perl并命名为test.pl

vim test.pl (保存退出)

2. 为test.pl添加权限

chmod 0755 test.pl

3. 执行test.pl

./test.pl