Chinaunix首页 | 论坛 | 博客
  • 博客访问: 837610
  • 博文数量: 253
  • 博客积分: 6891
  • 博客等级: 准将
  • 技术积分: 2502
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-03 11:01
文章分类

全部博文(253)

文章存档

2016年(4)

2013年(3)

2012年(32)

2011年(184)

2010年(30)

分类: Python/Ruby

2011-10-08 17:20:24



$. this is the line number of the read-in file.
__LINE__ the line number of the 'print __LINE__' in the script.


  1. while(<>){
  2.     print;
  3.     print $.;
  4.     print __LINE__;
  5. }

阅读(359) | 评论(0) | 转发(0) |
0

上一篇:子程序参数及分组

下一篇:lists and arrays

给主人留下些什么吧!~~