$data is a reference to an array (kind of like a c pointer): $data = \@somearray; # or $data = [1, 2, 4, 7]; # there are many other ways to create an array ref
When you say @$data, you dereference $data into array context because shift requires arrays to work with: my ($type) = shift @$data; Shifts the array that $data points to. Hth. Sid. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 04, 2001 5:33 AM To: [EMAIL PROTECTED] Subject: what is @$data i have come a cross a array-scalar combo that i cant figure out, maybe someone can help. the line off code is: my ($type) = shift @$data; does the $ in @$data mean to place $type after @data as opposed to before in the new @data? -- - josh N8MSO 20A8 2FC6 9099 D215 78F4 D005 B9F3 21C4 300C C25E ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo----------- -{= - [EMAIL PROTECTED] - tel: +972.58.520.636, http://www.tkos.co.il -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]