文章分类 - Perl
perl安装CPAN模块
摘要:在线安装: perl -MCPAN -e shell install 模块名(如:Image::Size) q(退出CPAN) OK! 如果通过代理上网请设置http_proxy环境变量,可以设置临...
阅读全文
<<Perl 技术内幕 第二版>> 读书笔记 1
摘要:在Perl中对每个数据类型须使用不同的前缀:标量用$,数组用@,哈希表用%。甚至在一些并非数据格式的项前也使用了前缀:子程序的名字使用&,而通配量(代表与变量有关的所有数据类型)使用*。除了使用前缀的项之外,在Perl中还可以给3中不需要前缀的项命名:文件句柄,格式名称,以及目录句柄。Perl从这些量使用的工作环境中知道它们是什么类型。在Perl中还可以使用标号标记代码的位置,它们同样不需...
阅读全文
[OReilly_Learning_Perl_5th_Edition]_Chap06_Exercises
摘要:3. [15] Write a program to list all of the keys and values in %ENV. Print the results in two columns in ASCIIbetical order. For extra credit, arrange the output to vertically align both columns. The l...
阅读全文
[OReilly_Learning_Perl_5th_Edition]_Chap05_Exercises
摘要:2. [8] Write a program that asks the user to enter a list of strings on separate lines,printing each string in a right-justified, 20-character column. To be certain that the output is in the proper co...
阅读全文
浙公网安备 33010602011771号