> On Tue, Sep 22, 2009 at 12:46:59PM +0400, Roman Makurin wrote: >> Hi All! >> >> right now im doing it in following way: >> >> $size = @{[func_that_return_list_value]}; >> >> is there any best way to do it ? > > $size =()= func_that_return_list_value;
"goatse"? Can you explain how perl interprets this? I would've incorrectly thought: 1) "() = func_that_return_list_value" tries to assign the list to "()" which perl would complain about. 2) Then assign the result to $size, which it wouldn't like either. Just when you think you're starting to understand perl... - Bryan -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/