读 《C程序员精通Perl》http://book.douban.com/subject/1232075/ 2.2节 笔记
#!/usr/bin/perl
use strict;
use warnings;
my $a = 10;
my $b = 10 ** 2;
print "a=\$$b\n";
运行结果:
[root@localhost perl_practice]# ./steam.pl
a=$100
5 my $a = 10; --- 声明一个变量,并初始化,perl里不同的变量类型,所有东西在perl看了都是字符串