perl 数组操作示例代码
代码语言:perl
所属分类:数组
代码描述:perl 数组操作示例代码
代码标签: 示例
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
#!/usr/bin/perl # create a simple array @coins = ("Quarter","Dime","Nickel"); print "1. \@coins = @coins\n"; # add one element at the end of the array push(@coins, "Penny"); print "2. \@coins = @coins\n"; # add one element at the beginning o.........完整代码请登录后点击上方下载按钮下载查看
网友评论0