Re: hash and print question

2019-12-05 Thread Todd Chester via perl6-users
On 2019-12-05 01:59, Todd Chester via perl6-users wrote: put he space or the "t" before "the". Chuckle.

Re: hash and print question

2019-12-05 Thread Todd Chester via perl6-users
On Thu, Dec 5, 2019 at 10:52 AM Todd Chester via perl6-users mailto:perl6-us...@perl.org>> wrote: Hi All, In the following, $ p6 'my %x= YesNo=>0xff, OkayCancel=>0x55; my $y="YesNo"; if %x<<$y>> {say %x<<$y >>.base(16)}else{say "n"};' FF $ p6 'my %x= YesNo=>0xff,

Re: hash and print question

2019-12-05 Thread Fernando Santagata
Try say %x{$y}.base(16); On Thu, Dec 5, 2019 at 10:52 AM Todd Chester via perl6-users < perl6-us...@perl.org> wrote: > Hi All, > > In the following, > > > $ p6 'my %x= YesNo=>0xff, OkayCancel=>0x55; my $y="YesNo"; if %x<<$y>> > {say %x<<$y >>.base(16)}else{say "n"};' > FF > > $ p6 'my %x=

hash and print question

2019-12-05 Thread Todd Chester via perl6-users
Hi All, In the following, $ p6 'my %x= YesNo=>0xff, OkayCancel=>0x55; my $y="YesNo"; if %x<<$y>> {say %x<<$y >>.base(16)}else{say "n"};' FF $ p6 'my %x= YesNo=>0xff, OkayCancel=>0x55; my $y="Help"; if %x<<$y>> {say %x<< $y >>.base(16)}else{say "n"};' n I have to use a space after $y