Chinaunix首页 | 论坛 | 博客
  • 博客访问: 738888
  • 博文数量: 235
  • 博客积分: 4309
  • 博客等级: 中校
  • 技术积分: 2325
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-17 11:25
个人简介

If you don\\\\\\\\\\\\\\\'t wanna do it, you find an EXCUSE; if you do, you\\\\\\\\\\\\\\\'ll find a WAY :-)

文章分类

全部博文(235)

文章存档

2014年(3)

2013年(2)

2012年(31)

2011年(199)

分类: Python/Ruby

2011-01-17 20:48:29

A Whirlwind Tour of Perl

  1. > more hello.pl
  2. #!/usr/local/bin/perl5.12.4
  3. use utf8;
  4. use warnings;
  5. use diagnostics;
  6. use 5.12.4;
  7. say "Hello World ===> by say!";
  8. print "Hello World ===> by print!\n";
  9. > chmod u+x hello.pl
  10. > ./hello.pl
  11. Hello World ===> by say!
  12. Hello World ===> by print! 

  13. > perl -e 'use 5.12.4;say "Hello World!"'
  14. > perl -c ./hello.pl
  15. ./hello.pl syntax OK

  16. > perldoc -u -f say
  17. > perldoc -u diag
  18. > perldoc -u faq
  19. > perldoc -u perl
  20. perl Perl overview (this section)
  21. > 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.


阅读(407) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~