On Sat, 29 Aug 2015 04:09:22 -0700, "Will Coleda via RT" <[email protected]> wrote:
> On Wed Mar 04 00:16:25 2015, hmbrand wrote:
> > $ perl6 -e '(1,Str,"a").map(*)[1].say'
> > (Str)
> > $ perl6 -e '(1,Str,"a").map(*)[1].perl.say'
> > Str
> > $ perl6 -e '(1,Str,"a").map(~*)[1].say'
> > use of uninitialized value of type Str in string context in block
> > <unit> at -e:1
> >
> >
> > $ perl6 -e '(1,Str,"a").map(~*)[1].perl.say'
> > use of uninitialized value of type Str in string context in block
> > <unit> at -e:1
> >
> > ""
> > $ perl6 -e '(1,Str,"a").map({$_//"-"})[1].say'
> > -
> > $ perl6 -e '(1,Str,"a").map({$_//"-"})[1].perl.say'
> > "-"
> > $ perl6 -e '(1,Str,"a").map(*//"-")[1].say'
> > (Str)
> > $ perl6 -e '(1,Str,"a").map(*//"-")[1].perl.say'
> > Str
>
> 06:47 < [Tux]> [Coke] in RT#123980, I hoped .map(*//"-") to do the same as
> .map({*//"-"})
Actually: .map(*//"-") to be the same as .map({$_//"-"})
sorry if my IRC comment caused confusion
--
H.Merijn Brand http://tux.nl Perl Monger http://amsterdam.pm.org/
using perl5.00307 .. 5.21 porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/ http://www.test-smoke.org/
http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/
pgpHB9DXZKr1m.pgp
Description: OpenPGP digital signature
