El Saturday, 01 de October del 2016 a les 20:44, Moritz Lenz va escriure:
On 01.10.2016 19:57, mimosinnet wrote:
@opposite = @opposite.sort({@$^a[3]});
For the record, you can simplify this a bit:
@opposite = @opposite.sort(*[3]);
Waw! It works! Many thanks!
I am still puzzled by the asterisk. I will have to dig more into the
documentation :D :)
Cheers!
for @opposite -> $line { say $line; }
---
I have adapted this from:
http://www.wellho.net/resources/ex.php?item=p600/mapper
I wanted to ask about the syntax, buy I have understood it while
writing the message ;) :D
I've had the same experience a few times :-)
Cheers,
Moritz
--
Moritz Lenz
https://deploybook.com/ -- https://perlgeek.de/ -- https://perl6.org/
--
Joan Pujol Tarrés
Departament de Psicologia Social
Facultat de Psicologia, Universitat Autònoma de Barcelona
Despatx: B5-036 (Passadís Departament Psicologia Social)
Edifici B, 08193 Bellaterra (Barcelona), Fax: +34 935812001
http://psicologiasocial.uab.es/ca/user/43
http://psicologiasocial.uab.es/fic
http://orcid.org/0000-0002-0462-3278
----------------------------------------------------------------------
signature.asc -> http://www.thelounge.net/signature.asc.what.htm
----------------------------------------------------------------------
() campaña lazo ascii | por favor, enviar correo ascii
/\ www.asciiribbon.org | por favor, enviar adjuntos en formato libre