Re: modules and constants

2019-12-06 Thread ToddAndMargo via perl6-users
On 2019-12-05 23:39, ToddAndMargo via perl6-users wrote: Hi All, Its there a way, if you import a module that is also imports a bunch of constants into your main program to be used globally? If so, what is the syntax in the module and in the main program? And what happends if there is a name

Re: Precedence: assignment vs smartmatch? (...was Re: where is my map typo)

2019-12-06 Thread ToddAndMargo via perl6-users
On 2019-12-06 23:06, William Michels via perl6-users wrote: On Fri, Dec 6, 2019 at 10:54 PM ToddAndMargo via perl6-users wrote: On 2019-12-06 22:38, ToddAndMargo via perl6-users wrote: On Fri, Dec 6, 2019 at 9:28 PM ToddAndMargo via perl6-users wrote: On 2019-12-06 20:33, William Michels

Re: Precedence: assignment vs smartmatch? (...was Re: where is my map typo)

2019-12-06 Thread William Michels via perl6-users
On Fri, Dec 6, 2019 at 10:54 PM ToddAndMargo via perl6-users wrote: > > On 2019-12-06 22:38, ToddAndMargo via perl6-users wrote: > >>> On Fri, Dec 6, 2019 at 9:28 PM ToddAndMargo via perl6-users > >>> wrote: > > On 2019-12-06 20:33, William Michels via perl6-users wrote: > > say

Re: Precedence: assignment vs smartmatch? (...was Re: where is my map typo)

2019-12-06 Thread ToddAndMargo via perl6-users
On 2019-12-06 22:38, ToddAndMargo via perl6-users wrote: On Fri, Dec 6, 2019 at 9:28 PM ToddAndMargo via perl6-users wrote: On 2019-12-06 20:33, William Michels via perl6-users wrote: say $/; First I have seen of `$/`.  Is it any relation to `$_`? On 2019-12-06 22:11, William Michels via

How do I do literal quotes in a regex?

2019-12-06 Thread ToddAndMargo via perl6-users
Hi All, Is there a `Q[]` that can be used in a regex? I am looking for how to get around my $x = Q[\:\\::]; ( my $y = $x ) ~~ s/ '' /x/; say $y \:x:: This does not work: my $x = Q[\:\\::]; ( my $y = $x ) ~~ s/ Q[\\] /x/; say $y \:\\:: Nor does this: my $x = Q[\:\\::]; ( my $y = $x ) ~~

Re: Precedence: assignment vs smartmatch? (...was Re: where is my map typo)

2019-12-06 Thread ToddAndMargo via perl6-users
On Fri, Dec 6, 2019 at 9:28 PM ToddAndMargo via perl6-users wrote: On 2019-12-06 20:33, William Michels via perl6-users wrote: say $/; First I have seen of `$/`. Is it any relation to `$_`? On 2019-12-06 22:11, William Michels via perl6-users wrote: Hi Todd, yes in a sense "$/" is

Re: Precedence: assignment vs smartmatch? (...was Re: where is my map typo)

2019-12-06 Thread William Michels via perl6-users
Hi Todd, yes in a sense "$/" is related to "$_" in that they're both variables that get filled with values behind the scenes by Raku/Perl6. You already know that "$_" is the general default 'topic' variable (same as in Perl 5, see Ref#1 below). >From Ref#2 below: " $/ is the match variable. It

Re: Precedence: assignment vs smartmatch? (...was Re: where is my map typo)

2019-12-06 Thread ToddAndMargo via perl6-users
On 2019-12-06 20:33, William Michels via perl6-users wrote: say $/; First I have seen of `$/`. Is it any relation to `$_`?

Re: vulgar?

2019-12-06 Thread ToddAndMargo via perl6-users
On 2019-12-06 18:34, Tom Browder wrote: On Fri, Dec 6, 2019 at 17:31 ToddAndMargo via perl6-users wrote: On 2019-12-06 04:19, Tom Browder wrote: Todd, arguing via email is almost guaranteed to be fruitless. You need to learn to use Github and make pull requests (PRs) for the EXACT changes

Precedence: assignment vs smartmatch? (...was Re: where is my map typo)

2019-12-06 Thread William Michels via perl6-users
Hello All, Todd put up some interesting code yesterday using the Raku/Perl6 REPL, which I reproduced with no problem. Additionally I tried some variations removing and/or moving parentheses to a different location, and have numbered the relevant REPL lines 1 through 6: mbook:~ homedir$ perl6 To

Re: vulgar?

2019-12-06 Thread Tom Browder
On Fri, Dec 6, 2019 at 17:31 ToddAndMargo via perl6-users wrote: > > On 2019-12-06 04:19, Tom Browder wrote: > > Todd, arguing via email is almost guaranteed to be fruitless. You need > > to learn to use Github and make pull requests (PRs) for the EXACT > > changes you think should be made to

Re: vulgar?

2019-12-06 Thread ToddAndMargo via perl6-users
On 2019-12-06 15:30, ToddAndMargo via perl6-users wrote: On 2019-12-06 04:19, Tom Browder wrote: Todd, arguing via email is almost guaranteed to be fruitless. You need to learn to use Github and make pull requests (PRs)  for the EXACT changes you think should be made to the docs. Hi Tom,

Re: My keeper on hashes

2019-12-06 Thread ToddAndMargo via perl6-users
On 2019-12-06 10:24, JJ Merelo wrote: Please use the new URLs, those are deprecated, are no longer updated, and might stop working without prior notice: https://docs.raku.org/language/subscripts#Basics https://docs.raku.org/type/Hash#:exists Cheers JJ Hi JJ, Good catch. Thank you! I

Re: comment on the new name change

2019-12-06 Thread ToddAndMargo via perl6-users
On 2019-12-06 09:55, Parrot Raiser wrote: Should users of Raku be termed "Rakuuns"? :-)* Hysterical!

Re: vulgar?

2019-12-06 Thread ToddAndMargo via perl6-users
On 2019-12-06 04:19, Tom Browder wrote: Todd, arguing via email is almost guaranteed to be fruitless. You need to learn to use Github and make pull requests (PRs) for the EXACT changes you think should be made to the docs. Hi Tom, What makes you think I do not know how to use the bug

Re: My keeper on hashes

2019-12-06 Thread JJ Merelo
El vie., 6 dic. 2019 a las 11:46, ToddAndMargo via perl6-users (< perl6-us...@perl.org>) escribió: > Hi All, > > My favorite variable is the associative array (hash). I finally updated > my keeper file on them. > > If anyone is interested, here goes! > > -T > > > Perl 6 Hashes (associative

Re: comment on the new name change

2019-12-06 Thread Parrot Raiser
Should users of Raku be termed "Rakuuns"? :-)*

Re: vulgar?

2019-12-06 Thread Parrot Raiser
It has been said that any sound the human voice can utter is rude in some language. It is also rather obvious that people who acquire second and subsequent languages informally tend to learn a very high proportion of "taboo" expressions. (Possibly because in many cases their principal source is

Re: comment on the new name change

2019-12-06 Thread Brad Gilbert
History lesson: Rakudo is short for Rakuda Do Rakuda Do is supposed to have meant "the way of the camel" The first book about Perl was Learning Perl. It had a Camel on the front cover. (Note also that the name of the butterfly logo is named Camelia, and that the first 5 characters spell Camel.)

Re: vulgar?

2019-12-06 Thread Elizabeth Mattijsen
> On 6 Dec 2019, at 13:19, Tom Browder wrote: > Note the Perl docs have been refined, by experts, since the late > 1980s, while the Raku docs have been expanding, by individuals with > itches to scratch and varying talents, for probably much less than 20 > years. The very first commit (by

Re: vulgar?

2019-12-06 Thread Tom Browder
On Fri, Dec 6, 2019 at 05:04 ToddAndMargo via perl6-users wrote: > I have uncovered several booboos in the docs. I find them > to not be all that accurate either. I really don't trust > them. And since they are written in IEEE-eese, booboos are > really hard to spot. ... > And when I do spot

Re: modules and constants

2019-12-06 Thread ToddAndMargo via perl6-users
On Fri, 6 Dec 2019 at 09:05, ToddAndMargo via perl6-users mailto:perl6-us...@perl.org>> wrote: On 2019-12-06 00:01, Tom Blackwood wrote: > Todd, > > AFAIK Perl’s culture is not to use so many constants in actual > programming. :) > > Tom > Is there a

Re: vulgar?

2019-12-06 Thread ToddAndMargo via perl6-users
On 2019-12-06 01:24, Laurent Rosenfeld via perl6-users wrote: Manual pages (which are reference material) and tutorials are two very different kinds of writing. Manual pages are usually more difficult to understand than (good) tutorials, because they have to be *very accurate* and as complete

My keeper on hashes

2019-12-06 Thread ToddAndMargo via perl6-users
Hi All, My favorite variable is the associative array (hash). I finally updated my keeper file on them. If anyone is interested, here goes! -T Perl 6 Hashes (associative arrays): References: https://docs.perl6.org/language/subscripts#Basics https://docs.perl6.org/type/Hash#:exists

Re: looking for good project to learn perl6

2019-12-06 Thread Tom Blackwood
Thanks, I'll check it out! On Fri, Dec 6, 2019 at 5:50 PM JJ Merelo wrote: > Try something in the most wanted repo: > https://github.com/perl6/perl6-most-wanted/blob/master/most-wanted/modules.md > That way you will learn _and_ help the community. > > El vie., 6 dic. 2019 a las 8:11, Tom

Re: looking for good project to learn perl6

2019-12-06 Thread JJ Merelo
Try something in the most wanted repo: https://github.com/perl6/perl6-most-wanted/blob/master/most-wanted/modules.md That way you will learn _and_ help the community. El vie., 6 dic. 2019 a las 8:11, Tom Blackwood () escribió: > Hello > > My team most time developed with ruby language. > These

Re: modules and constants

2019-12-06 Thread Simon Proctor
If you define them in the top level of your module then all your subs have access : constant FOO = 2; sub inc-by-foo( $a ) { $a+FOO; } On Fri, 6 Dec 2019 at 09:05, ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > On 2019-12-06 00:01, Tom Blackwood wrote: > > Todd, > > > > AFAIK

Re: vulgar?

2019-12-06 Thread Laurent Rosenfeld via perl6-users
Manual pages (which are reference material) and tutorials are two very different kinds of writing. Manual pages are usually more difficult to understand than (good) tutorials, because they have to be *very accurate* and as complete as possible (if not exhaustive), while tutorials can leave out

Re: modules and constants

2019-12-06 Thread ToddAndMargo via perl6-users
On 2019-12-06 00:01, Tom Blackwood wrote: Todd, AFAIK Perl’s culture is not to use so many constants in actual programming. :) Tom Is there a way to make constants universal inside a module, or do I have to declare them inside every sub?

Re: where is my map typo?

2019-12-06 Thread ToddAndMargo via perl6-users
On 2019-12-05 23:19, ToddAndMargo via perl6-users wrote: On 2019-12-05 03:09, William Michels via perl6-users wrote: What happens when you type "perl6" or "raku" at the bash command prompt? Hi William, On my shop machine, it jumps to the next line with an empty flashing cursor On my office

comment on the new name change

2019-12-06 Thread ToddAndMargo via perl6-users
Hi All, I personally do not care if we call Perl 6 "The Flying Zucchini". But what I really like is that I can now to a web search on "raku" and not get 3,264,682,533 hits on Perl 5 that I have to frustratingly sort through to find what I want. So I am a happy camper with the new name. Just

Re: modules and constants

2019-12-06 Thread Tom Blackwood
Todd, AFAIK Perl’s culture is not to use so many constants in actual programming. :) Tom On Fri, Dec 6, 2019 at 3:47 PM ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > Hi All, > > Its there a way, if you import a module that is also > imports a bunch of constants into your main