摘要:
一、require函数1、require函数和子程序库2、用require指定Perl版本二、包1、包的定义2、在包间切换3、main包4、包的引用5、指定无当前包6、包和子程序7、用包定义私有数据8、包和系统变量9、访问符号表三、模块1、创建模块2、导入模块3、预定义模块Code highlighting produced by Actipro CodeHighlighter (freeware... 阅读全文
摘要:
一、定义打印格式二、显示打印格式三、在打印格式中显示值1、通用的打印格式2、格式和局域变量3、选择值域格式4、输出值域字符四、输出到其它文件五、分页六、格式化长字符串七、用printf格式化输出Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--我们已经见... 阅读全文
摘要:
一、数组变量的限制二、定义三、访问关联数组的元素四、增加元素五、创建关联数组六、从数组变量复制到关联数组七、元素的增删八、列出数组的索引和值九、用关联数组循环十、用关联数组创建数据结构1、(单)链表2、结构3、树Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com... 阅读全文
摘要:
一、条件判断二、循环:1、while循环2、until循环3、for循环4、针对列表(数组)每个元素的foreach循环 5、do循环6、循环控制7、传统的goto语句三、单行条件Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--一、条件判断if(<... 阅读全文