#!/usr/bin/perl
print "Hello world!\n";
use 5.010;
say "Hello world!";
$ ./helloworld.pl
Hello world!
Hello world!
$ ./helloworld.pl
String found where operator expected at ./helloworld.pl line 7, near "say "Hello world!""
(Do you need to predeclare say?)
syntax error at ./helloworld.pl line 7, near "say "Hello world!""
Execution of ./helloworld.pl aborted due to compilation errors.
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |