[問題] 新手提問

作者: psylove5566 (甜小蜜)   2013-05-22 20:19:29
麻煩各位大大指教
程式碼如下:
while(<T>) { @A = split(" ", $_);
$phone = shift @A;
$pos = shift @A;
$tree{$phone,$pos} = join(" ", @A);
}
如果輸入字串為"A B C D",則phone=A,pos=B,tree{A,B}=C D,請問這是對的嗎??
還有請問while括弧中的<T>是什麼意思?
作者: CCWck (幹嘛要暱稱)   2013-05-22 22:38:00
程式碼不完全吧?<T> 可能是stdin的input
作者: psylove5566 (甜小蜜)   2013-05-23 00:09:00
了解了,謝謝

Links booklink

Contact Us: admin [ a t ] ucptt.com