Ok, thanks ! I read it and every thing becomes clear to me :-) José. Jenda Krynicky <[EMAIL PROTECTED]> a écrit : From: José Nyimi > this slice thing is really very nice. > > @hash{@array1}=@array2; > > I saw it many times used in constructor of "Object Oriented" Perl's > code. > > Could you explain sequencely the syntax please ?
Well I don't think I can make up a better explanation than the one found in perldoc perldata in section "Slices". Jenda P.S.: Nikola? The grep is slower than the slice: Benchmark: timing 20000 iterations of Faq, Mine, Nikola... Faq: 10 wallclock secs ( 9.70 usr + 0.00 sys = 9.70 CPU) @ 2061.01/s (n=20000) Mine: 1 wallclock secs ( 1.58 usr + 0.00 sys = 1.58 CPU) @ 12642.23/s (n=20000) Nikola: 5 wallclock secs ( 4.40 usr + 0.00 sys = 4.40 CPU) @ 4549.59/s (n=20000) =========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ========== There is a reason for living. There must be. I've seen it somewhere. It's just that in the mess on my table ... and in my brain I can't find it. --- me -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------- Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en français !