
gooroo175
Novice
Aug 11, 2008, 11:18 AM
Post #1 of 3
(409 views)
|
|
Array access question
|
Can't Post
|
|
Hi there, sometimes I'm getting confused with all those curly brackets and braces. So here's my question. I've got a function that returns an 2D-array of values and I want to access the first row only. so basically I'm looking for a way to write the following in one line. my @ret = func(); my @line1 = @{$ret[0]}; this works but i like to have an even short form. s.th. like my @line1 = @{func()[0]} or so. Thanks for every help...
|