Re: [問題] 請問駱馬書第三章 習題第二題??
※ 引述《synth ( $)》之銘言:
: #!/usr/bin/perl
: my @names=qw(fred betty barney dino wilma pebbles bamm-bamm);
: print"1.fred 2.betty 3.barney 4.dino 5.wilma 6.pebbles 7.bamm-bamm\n";
: print"please select persons:";
: my @ent=split /,/,<>;
: for (@ent)
: {
: print $names[$_-1]," ";
: }
: print "\n";
感謝上面兩位大大指教^^
有問題我在發問^^
--
http://www.wretch.twbbs.org/album/krist ^^"
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.162.211.159
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 4 之 4 篇):