Home  |  Linux  | Mysql  | PHP  | XML
From:Uri Guttman Date:Tue Mar  9 17:04:55 2010
Subject:Re: Mass value assigment
>>>>> "AS" == Alexey Salmin <alexey.salmin@gmail.com> writes:

AS> my ($a, $b, $c, $d) = split /,/, "test," x 4;

ewww. do you know about the list form of x? no need to build the string
and then split which is a major waste of cpu.

my ($a, $b, $c, $d) = ("test") x 4;

uri

--
Uri Guttman ------ uri@stemsystems.com -------- http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------
Navigate in group perl.beginners at sever nntp.perl.org
Previous Next


Your recent visits
Re: question on software development
Re: Replacement in 3GB file
Re: Any Good SCM tool to manage Perl Code locally
Re: Any Good SCM tool to manage Perl Code locally
running stats on a file



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants