A Whirlwind Tour of Perl
- > more hello.pl
- #!/usr/local/bin/perl5.12.4
- use utf8;
- use warnings;
- use diagnostics;
- use 5.12.4;
- say "Hello World ===> by say!";
- print "Hello World ===> by print!\n";
- > chmod u+x hello.pl
- > ./hello.pl
- Hello World ===> by say!
- Hello World ===> by print!
- > perl -e 'use 5.12.4;say "Hello World!"'
- > perl -c ./hello.pl
- ./hello.pl syntax OK
- > perldoc -u -f say
- > perldoc -u diag
- > perldoc -u faq
- > perldoc -u perl
- perl Perl overview (this section)
- > perldoc -u -q mail
1>: How Can I Get Perl? (CPAN is the Comprehensive Perl Archive Network)
2>: Is Perl Easy or Hard?
Perl is easy to use, but sometimes hard to learn..
3>: What's Perl Really Good For?
Perl is optimized for problems that are about 90% working with text and about 10% everything else.
阅读(400) | 评论(0) | 转发(0) |