Hi Todd,
Do you not have a working Raku/Perl6 REPL install? If you do, when
copying (single-quoted) code out of https://docs.raku.org , you could
try the following strategy of pasting into the REPL first, before
pasting code at the command line:
> my $repl_code = Q[my $map = Map.new('a', 1, 'b',
On 2019-12-04 02:31, Simon Proctor wrote:
You're using doubles quotes for the string you're passing to Raku.
This means the Shell will do variable interpolation. So it see's "my
$map = Map.new()" and puts the value of it's variable $map in their.
But it doesn't exist. So Raku gets "my = Map.n
On 2019-12-04 02:39, William Michels via perl6-users wrote:
On Wed, Dec 4, 2019 at 2:22 AM ToddAndMargo via perl6-users
wrote:
Hi All,
I am going through the examples on
https://docs.perl6.org/type/Map.html
$ p6 "my $map = Map.new('a', 1, 'b', 2); say $map{'a'}; say $map{ 'a',
'b' };"
=
Just for the record, the issue is that you use double quotes on the command
line, which will interpolate any $ variables, so raku only saw the
interpolated value, which was nothing.
On Wed, Dec 4, 2019, 12:48 William Michels via perl6-users <
perl6-us...@perl.org> wrote:
> On Wed, Dec 4, 2019 at
On 2019-12-04 04:25, Mark Senn wrote:
I can't have books in my house. It is along story.
If you can have ebooks a Google search showed
https://www.amazon.com/Learning-Perl-Keeping-Impossible-Within-ebook-dp-B07GT9KPP1/dp/B07GT9KPP1/ref=mt_kindle?_encoding=UTF8&me=&qid=
for Kindle versions or
On 2019-12-04 08:47, yary wrote:
Requoting myself with emphasis
/> If you can post a *_file_* that does that, I'll eat my hat!/
show me an "exapmle.raku" file that the command "perl6 example.raku"
won't interpolate variables in Windows but will in Unix in a buggy way,
and I'll eat my hat. I'm
Requoting myself with emphasis
*> If you can post a file that does that, I'll eat my hat!*
show me an "exapmle.raku" file that the command "perl6 example.raku" won't
interpolate variables in Windows but will in Unix in a buggy way, and I'll
eat my hat. I'm not here to discuss command-line interpr
On Wed, Dec 4, 2019 at 2:22 AM ToddAndMargo via perl6-users
wrote:
>
> Hi All,
>
> I am going through the examples on
> https://docs.perl6.org/type/Map.html
>
> $ p6 "my $map = Map.new('a', 1, 'b', 2); say $map{'a'}; say $map{ 'a',
> 'b' };"
> ===SORRY!=== Error while compiling -e
> Malformed
You're using doubles quotes for the string you're passing to Raku.
This means the Shell will do variable interpolation. So it see's "my $map =
Map.new()" and puts the value of it's variable $map in their.
But it doesn't exist. So Raku gets "my = Map.new()" (Note the space where
$map was). And com
El mié., 4 dic. 2019 a las 11:06, ToddAndMargo via perl6-users
https://docs.perl6.org/type/Map.html
On 2019-12-04 02:12, JJ Merelo wrote:
Please use this now: https://docs.raku.org/type/Map.html
(also, we should probably move the deprecation notice from the footer to
the header.
Hi All,
I am going through the examples on
https://docs.perl6.org/type/Map.html
$ p6 "my $map = Map.new('a', 1, 'b', 2); say $map{'a'}; say $map{ 'a',
'b' };"
===SORRY!=== Error while compiling -e
Malformed my
at -e:1
--> my⏏ = Map.new('a', 1, 'b', 2); say {'a'};
What the heck is a 'M
El mié., 4 dic. 2019 a las 11:06, ToddAndMargo via perl6-users (<
perl6-us...@perl.org>) escribió:
> On 2019-12-04 01:44, William Michels via perl6-users wrote:
> > Hi Todd,
> >
> > Chapter 9 (Associatives) of "Learning Perl 6" by brian d foy has a
> > section on Maps, "the immutable mapping of ze
On Wed, 4 Dec 2019 at 08:45, ToddAndMargo via perl6-users
mailto:perl6-us...@perl.org>> wrote:
Hi All,
I am cooking up something where I want top pass a value to a sub, but I
want to restrict what those values are.
For instance, things like
AbortRetryIgnore
C
On 2019-12-04 01:44, William Michels via perl6-users wrote:
Hi Todd,
Chapter 9 (Associatives) of "Learning Perl 6" by brian d foy has a
section on Maps, "the immutable mapping of zero or more keys to
values". In that section there are subsections entitled 'Checking
Keys', 'Creating from a Positi
Hi Todd,
Chapter 9 (Associatives) of "Learning Perl 6" by brian d foy has a
section on Maps, "the immutable mapping of zero or more keys to
values". In that section there are subsections entitled 'Checking
Keys', 'Creating from a Positional' and 'Checking Allowed Values.'
HTH, Bill.
On Wed, Dec
So I'd approach this in one of two ways. Firstly there's the multi sub with
constants option :
multi selector( "AbortRetryIgnore" ) { ... }
multi selector( "CancelRetryContinue" ) { ... }
multi selector( "Help" ) { ... }
multi selector( "YesNo" ) { ... }
multi selector( "Maybe" ) { ... }
I'd do t
Hi All,
I am cooking up something where I want top pass a value to a sub, but I
want to restrict what those values are.
For instance, things like
AbortRetryIgnore
CancelRetryContinue
Help
YesNo
Maybe
And so on and so forth.
If the wrong value is passed, I want the checker to
17 matches
Mail list logo