perl 控制结构 条件控制 if while
一、条件判断if ( ) {}elsif ( ) {}...else{} 二、循环:1、while循环while ( ) {} 2、until循环until ( ) {} 3、类C的for循环 ,如for ($count=1; $count , $count = 1; $count , $co
一、条件判断if ( ) {}elsif ( ) {}...else{} 二、循环:1、while循环while ( ) {} 2、until循环until ( ) {} 3、类C的for循环 ,如for ($count=1; $count , $count = 1; $count , $co
关键字 def undef 方法定义 module 模块定义 class 类定义 defined? 检查类型 条件语句 if,then,else,elsif,case,when,unless 循环语句 for ,in,while,until,next,break,do,redo,retry,yiel