Pixel Pedals of Tomakomai

北海道苫小牧市出身の初老の日常

2006-08-28から1日間の記事一覧

while

行番号を付けてファイルを表示するスクリプトを書きました。 open(IN, $ARGV[0]) || die; while(<IN>){ chomp; printf("%04d:%s\n", $., $_); } close(IN); 【結果】 $ perl number.pl Test.m 0001:#import <objc/Object.h> 0002:#import <stdio.h> 0003: 0004:@interface Test : Object </stdio.h></objc/object.h></in>…