subroutines of perl
2015-12-06 21:33
204 查看
#!/usr/bin/perl -w @students = qw/Doreen Oskar Elin Sangeet Malin/; &next_student; &next_student; sub next_student { $i++; print "the next student is $students[$i]\n"; }
the next student is Oskar the next student is Elin
相关文章推荐
- 死锁
- KMP 算法(上篇)
- 数组元素排序
- Scala JDBC连接mysql
- Linux安装教程
- 学习(主题或切入点)checklist1
- vs 常用快捷键
- 实现u-boot对yaffs/yaffs2文件系统下载的支持
- 1051. Pop Sequence (25)【栈】——PAT (Advanced Level) Practise
- poj1488
- CSAPP——实验二 拆炸弹
- openMP(并行计算) 超简单快速上手
- cocos2d-x的屏幕适配
- 数树
- hdoj 1034 Candy Sharing Game 【水模拟】【周赛】
- codeforces 604 E. Lieges of Legendre (sg函数)
- 【Leetcode】Majority Element II
- MySQL 插入数据时,中文乱码问题的解决
- 【蓝桥第四周】均分纸牌
- 3GPP 36211-c70-3