索取課程優惠資訊
雜誌專欄
技術文件
技術小秘訣
奇科技術討論區
Tech Tips
25
輸入一字串及一數字(分成2列輸入),把字串重複n次輸出
作者:奇科電腦|發布日期:2010/03/01|
回技術小秘訣
#!/usr/bin/perl -w
my @in;
while(chomp($_ =
)) {
push @in, $_;
last if $. >= 2;
}
print $in[0] x $in[1], "\n";
本站最佳瀏覽視窗為1024x768 奇科電腦版權所有 Copyright 2010 GeeGo Systems, Ltd.
service@geego.com.tw
|免付費專線:0800-296-296|台北市朱崙街60號3樓(近南京東路捷運站)|02-2711-6373