Re: 請問有關perl的純量和串列量的觀念

看板Programming作者時間18年前 (2007/02/13 09:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
※ 引述《redjack (.)》之銘言: > 各位大大好 > 小弟昨天買了歐萊禮的perl學習手冊自修,看到第三章的習題時出現問題 > 以下是小弟的程式碼: > #!/usr/bin/perl -w > #Learning Perl 4e. Ch3.exercise. > print "Please input some string..\n"; > @strings = <STDIN>; > @n_str = sort @strings; > print sort @strings; > print "\n"; > print "\@n_str is ".@n_str; 昨天從學園那得到前輩的指導 用.的話會將前後視為純量,所以改用 ,就可以了 x -- 滿天星斗中惟一的鮮紅... 看不見的黑幕... -- ※ Origin: 摩卡小築 <moca.csie.chu.edu.tw> ◆ From: 220-139-135-170.dynamic.hinet.net
文章代碼(AID): #15qGtF00 (Programming)
文章代碼(AID): #15qGtF00 (Programming)