Where angels fear to tread - A switch statement for Perl

被引:0
|
作者
Conway, D [1 ]
机构
[1] Monash Univ, Sch Comp Sci & Software Engn, Clayton, Vic 3168, Australia
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
This paper proposes a syntax and semantics for an explicit case mechanism for Perl. The syntax is minimal, introducing only the keywords switch and case and conforming to the general pattern of existing Perl control structures. The semantics are particularly rich, allowing any one (or more) of nearly thirty forms of matching to be used when comparing a switch value with its various cases. A prototype implementation of the proposed addition is also described.
引用
收藏
页码:91 / 96
页数:6
相关论文
共 50 条