|
|
在fedora core6下已经安装了perl模块,但是在命令行运行sh XXXX.pl时候,报错
我的1.pl中
1 #!/usr/bin/perl
2 use DBI;
3 use strict;
4 use warnings;
5 DBI->trace(0);
......
运行时报错
1.pl: line 2: use: command not found
1.pl: line 3: use: command not found
1.pl: line 4: use: command not found
1.pl: line 5: syntax error near unexpected token `('
1.pl: line 5: `DBI->trace(0);'
请大侠指教,谢谢。 |
|