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:
--
Paul Johnson - [email protected]
http://www.pjcj.net
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/