读 《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看了都是字符串
本文详细解读了使用Perl语言进行变量赋值的过程,并通过实例展示了运行结果,帮助读者掌握Perl中变量操作的细节。

被折叠的 条评论
为什么被折叠?



