On Tue, Sep 22, 2009 at 05:22, Paul Johnson <p...@pjcj.net> wrote: > 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; > > For more information see perldoc perldata starting at the part which > reads: > > List assignment in scalar context returns the number of elements > produced by the expression on the right side of the assignment: snip
=()= is also often called the goatse operator (even though it is three operators). If the reason is not clear, be very very thankful it isn't. -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/