java打印对象内存地址 分布式事务 事务消息 分布式事务 几种解决方案 分布式事务-Seata 分布式事务-Seata 分布式事务-LCN-TCC 分布式事务-LCN 分布式事务-消息队列-定时任务-本地事件表 Zuul网关实战02 Zuul网关实战01 灰度发布落地实战2 灰度发布落地实战1 Gsnova on Heroku build Systemd Debian system initialization manage multi id_rsa ubuntu 64bits cannot run 32bits app REHL power auditing Debug Assembly for ARMv8 on QEMU ARM体系结构--寄存器 Run Debian iso on QEMU ARMv8 QEMU ARM64 guide cross compiler install buildroot install QEMU install python入门--数据结构 python入门--内置数据类型 python入门--类 异常 python入门--条件表达式 方法 python入门--数字 字符串 数组 RTC驱动分析 块设备驱动 TCP UDP socket 触摸屏驱动 USB驱动 LED按键中断 LCD 驱动 驱动信号 根文件系统 实验 内核实验 字符设备驱动程序 绪论 uboot 实验 LCD 实验 系统时钟和UART 中断控制器 Nand Flash控制器 MMU 实验 储存管理器实验 GPIO实验 点亮LED 编译加载驱动 制作烧写内核 dnw替代方法 MINI2440 TQ2440安装配套Linux 使用NFS 制作烧写跟文件系统 grub引导Windows 烧写裸版程序-linux Ubuntu 网络没有 eth0 Linux自动挂载 烧写裸板程序 电路基础 Mac词典 Vim插件 Assembly 综合研究 Assembly 指令总结 Assembly 直接定址表 Assembly 使用BIOS进行键盘输入和磁盘读写 Assembly 外中断 Assembly 端口 Assembly int指令 Assembly 内中断 Assembly 标志寄存器 Assembly 转移指令的原理 Assembly Call和ret指令 Assembly 数据处理两个基本问题 Assembly 灵活定位内存地址 Assembly 包含多个段的程序 Assembly [bx] loop Assembly 第一个程序 Assembly 寄存器 (内存访问) Assembly 寄存器 AWS VPN with EC2 hidden file in picture(linux) Assembly 基础 idea shortcuts 常用快捷键 idea plugin folder install ruby and jekyll

Perl 1.Introduction

2016年07月11日

This series article that are learning note for Learning Perl by Randal L. Schwartz, brian d foy, and Tom Phoenix published by O’REILLY.

#Perl 1. Introduction

###What’s Perl Really Good For? Perl is optimized for problems which are about 90% working with text.

###What Is Perl Not Good For? You shouldn’t choose Perl if you’re trying to make an opaque binary.

###What is CPAN? CPAN is the Comprehensive Perl Archive Network, your one-stop shopping for Perl.

###Are There Any Other Kinds of Support? http://www.pm.org/ http://perldoc.perl.org/ http://learn.perl.org/faq/ http://perlmonks.org/ http://learn.perl.org/

###A Simple Program

create and edit a text file

$ vi my_program

#!/usr/bin/perl
print "Hello, world!\n";

apply permissions:

chmod a+x my_program

finally run

$ ./my_program

There’s another way to write this simple program in Perl 5.10 or later.

Instead of print, we use say, which does almost the same thing ,but with less typing.

Since it’s a new feather and you might not using Perl 5.10 yet, we include 5.010 statement that tells Perl that we used new feathers:

#!/usr/bin/perl

use 5.010;

say "Hello, world!";

This book covers up to Perl 5.14, so in many of the new features we preface the examples to remind you to add this line:

use 5.014;

###How Do I Compile My Perl Program? Just run your Perl program. The perl interpreter compiles and runs your program in one user step:

$ perl my_program