Perl初心者スレ(マジレス回答) (523レス)
上
下
前
次
1-
新
375
: 2015/08/31(月)00:47
ID:xgd4PpfH(1)
AA×
[
240
|
320
|
480
|600|
原寸
|
JPG
|
べ
|
レス栞
|
レス消
]
375: [] 2015/08/31(月) 00:47:28.38 ID:xgd4PpfH 下のようにリストのリストを作成したいがcpanか何かで実現できないでしょうか? > (list (list 1 2) (list 3 4)) ((1 2) (3 4)) > (first (list (list 1 2) (list 3 4))) (1 2) > (second (list (list 1 2) (list 3 4))) (3 4) my @car = (1, 2); my @cdr = (3, 4); my @both = (@car, @cdr); print "\@car is @car\n"; # -> @car is 1 2 print "\@cdr is @cdr\n"; # -> @cdr is 3 4 print "\@both is @both\n";# -> @both is 1 2 3 4 printf "%s\n" , $both[0]; # -> 1 printf "%s\n" , $both[1]; # -> 2 printf "%s\n" , $both[2]; # -> 3 printf "%s\n" , $both[3]; # -> 4 http://mevius.5ch.net/test/read.cgi/tech/1349538519/375
下のようにリストのリストを作成したいがか何かで実現できないでしょうか?
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 148 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
ぬこの手
ぬこTOP
0.022s