Re: A nice touch

2021-11-04 Thread Laurent Rosenfeld via perl6-users
It is the exponentiation operator: $ perl -E 'say 3 ** 2;' 9 Cheers, Laurent. Le mer. 3 nov. 2021 à 20:05, Wes Peng a écrit : > What's the "**" operator in perl? I most of the time use R for math, not > familiar with this operation. > > Thanks > > On Sun, Oct 31, 2021 at 3:38 AM Sean McAfee

Re: How do I address individual elements inside an object

2020-12-19 Thread Laurent Rosenfeld via perl6-users
Yeah, right. $FruitStand.apples is not a direct access to the attribute, but a method invocation (a call to a method implicitly created by Raku), so it doesn't get interpolated within the string. So it should be outside the string or used with a code interpolation block. For example: say

Re: How do I address individual elements inside an object

2020-12-18 Thread Laurent Rosenfeld via perl6-users
Hi Todd, 1. Yes, a class is a blueprint for manufacturing objects, you can construct as many object as you want. 2. As an example, you can try: say " Fruitstand in $FruitStand.location has $FruitStand.apples apples."; 2. As you declared your class the object attributes will not be mutable.

Re: root cubic

2020-07-09 Thread Laurent Rosenfeld via perl6-users
Do you expect something else? The result appears to be correct. Please note that, when dealing with square or cubic roots, Raku will not use rationals, but ordinary floats. Le jeu. 9 juil. 2020 à 17:27, Aureliano Guedes a écrit : > Hi all, > > A quick question. > > This is expected? > > raku

Re: I need help with IO.e

2020-05-16 Thread Laurent Rosenfeld via perl6-users
Hi, it should be: $ raku *-e* "your one-liner script here" Best regards, Laurent. Le sam. 16 mai 2020 à 12:16, ToddAndMargo via perl6-users < perl6-us...@perl.org> a écrit : > On 2020-05-15 22:30, ToddAndMargo via perl6-users wrote: > > Hi All,. > > > > Windows 7, sp1, x64 > > > > >raku -v >

Re: More questions on the "-pe" one-liner flag: in conjunction with s/// and tr///

2020-05-07 Thread Laurent Rosenfeld via perl6-users
Hi William, I guess that you now have answers to your questions. I would suggest, however, that you take a look as Andrew Shitov's book *Raku One-Liners*, available on-line ( https://andrewshitov.com/wp-content/uploads/2020/01/Raku-One-Liners.pdf). There are (around page 12) some explanations on

Re: More questions on the "-pe" one-liner flag: in conjunction with s/// and tr///

2020-05-06 Thread Laurent Rosenfeld via perl6-users
The s/// substitution operator is not a method (and tr/// also not). They both modify their operands, so there is no need anyway for a '.=' syntax, since they do already what the '.=' syntax is aimed at. Cheers, Laurent.

Re: Inconsistency between one-liner flags (-ne, -pe) using chop example?

2020-05-05 Thread Laurent Rosenfeld via perl6-users
In: perl6 -ne 'put .chop' demo1.txt the script prints out the value returned by the chop method, because put acts on this value. In: perl6 -pe '.chop' demo1.txt the value returned by chop is discarded and the script print $_ unaltered. Cheers, Laurent. Le mar. 5 mai 2020 à 21:07, William

Re: My keeper on hashes

2020-01-16 Thread Laurent Rosenfeld via perl6-users
> one of those "Magic" variables that is unbounded, meaning > I can have a 1024 bit integer if I choose? Yeah, and even a 1024-digit integer, or much larger, if so you wish. Le jeu. 16 janv. 2020 à 04:28, ToddAndMargo via perl6-users < perl6-us...@perl.org> a écrit : > >> On Wed, Jan 15,

Re: Once again - You say one thing and do another Re: Bug to report: cardinal called an integer

2020-01-15 Thread Laurent Rosenfeld via perl6-users
The point is really not whether people like you or don't, and also not about whether you like specific people or don't. I don't know you (at least personally), you don't know me personally, and nobody cares about whether I like you or whether you like me. The whole point is about being polite,

Re: Once again - You say one thing and do another Re: Bug to report: cardinal called an integer

2020-01-15 Thread Laurent Rosenfeld via perl6-users
I join with Liz and Tom to thank you, Richard, for this long and thoughtful answer. Le mer. 15 janv. 2020 à 22:57, Richard Hainsworth a écrit : > Todd, > > Once again I find myself writing to you directly in response to a post > of yours and asking again that you be respectful to others in

Re: Bug to report: cardinal called an integer

2020-01-13 Thread Laurent Rosenfeld via perl6-users
> What makes you think I did not understand the documentation? Your own record over the last years shows that you very often don't understand documentation (and I actually sometimes wonder whether you're even really interested in trying to understand it). Your disdain for the documentation just

Re: rakudo.org outdated?

2020-01-03 Thread Laurent Rosenfeld via perl6-users
Hi Patrick, I'm sure you have plenty of things to do and I don't want to put too much pressure on you, but it would be really nice to have a good and more recent Rakudo Star version available, especially in view of the recent renaming of the language. I'm writing every week at least two or three

Re: My Windows Modules

2020-01-03 Thread Laurent Rosenfeld via perl6-users
Hy Todd, why don't you use GitHub or GitLab? This is really a better solution for software source and revision control. Have a nice new year, Laurent. Le ven. 3 janv. 2020 à 21:29, ToddAndMargo via perl6-users < perl6-us...@perl.org> a écrit : > On 2019-12-31 23:12, ToddAndMargo via

Re: My keeper on "contains"

2019-12-10 Thread Laurent Rosenfeld via perl6-users
You've made a very interesting point on how difficult it is to write proper documentation. I hope that Todd will reflect on that. Le mar. 10 déc. 2019 à 23:45, Rocco Caputo a écrit : > On Dec 10, 2019, at 15:35, ToddAndMargo via perl6-users < > perl6-us...@perl.org> wrote: > > A method is a

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: perl6 for web development

2019-09-29 Thread Laurent Rosenfeld via perl6-users
Hi, you probably want to take a look at Cro. Cheers, Laurent. Le dim. 29 sept. 2019 à 11:37, 星沉 a écrit : > Hello, > > I have been learning perl6 for some days. > I want to switch to the actual project using perl6. > Is there any book/guide for web development with

Re: Variable character class

2019-09-08 Thread Laurent Rosenfeld via perl6-users
Because sets are unordered collections of items. And the (&) operator returns a set. Le dim. 8 sept. 2019 à 00:18, Aureliano Guedes a écrit : > Why does it dont return ordered for neither of those lists? > I mean: > > my $u = "24680"; > my @s = $u.comb.unique; > say @s ; # [2 4 6 8 0] > > sub

Re: learning resources for perl6 beginner

2019-08-24 Thread Laurent Rosenfeld via perl6-users
Just one additional point: *Think Perl 6* is available in printed form (e.g. from Amazon), but is also available for free download in PDF format: https://greenteapress.com/wp/think-perl-6/ Le sam. 24 août 2019 à 20:32, Parrot Raiser <1parr...@gmail.com> a écrit : > Some books: > > "Think Perl

Re: perl6's new name?

2019-08-20 Thread Laurent Rosenfeld via perl6-users
Maybe I wasn't clear enough. What I meant to say it that I wasn't enthusiastic about a name change, but, if the name really has to change, then Camelia is my favorite name. Le mer. 14 août 2019 à 05:49, Eliza a écrit : > Hi, > > on 2019/8/14 5:19, Laurent Rosenfeld via perl6-us

Re: perl6's new name?

2019-08-13 Thread Laurent Rosenfeld via perl6-users
I don't think the decision has been made so far. At this point, it is a proposal by one (or possibly several) individual(s) whom I very much respect. And it is definitely not going to hapopen this week (and quite probably not this month). Even though my opinion on the subject is probably

Re: [golf?] list of matches

2019-07-09 Thread Laurent Rosenfeld via perl6-users
A small example as a complement to my previous post: my @a = 1, 2; my @b = 3, 4; my @c = @a X @b; # -> [(1,3), (1,4), (2,3), (2,4)] Le mar. 9 juil. 2019 à 23:36, Marc Chantreux a écrit : > hello people, > > i have a game where every opponent much play every other ones > so i

Re: [golf?] list of matches

2019-07-09 Thread Laurent Rosenfeld via perl6-users
You might want to take a look at the cross ("X") operator, which takes two or more lists as arguments and returns a list or all lists that can be constructed combining the elements of each list (or, in other words, a Cartesian product of the input lists). Cheers, Laurent. Le mar. 9 juil. 2019 à

Re: documentation translation effort ?

2019-07-09 Thread Laurent Rosenfeld via perl6-users
019 a las 21:53, Laurent Rosenfeld via perl6-users (< > perl6-us...@perl.org>) escribió: > >> Hi Marc, >> >> the French Wikipedia page you refer to is not really wrong, but rather >> terribly outdated and, therefore, no longer correct. I have a Wikipedia >&g

Re: documentation translation effort ?

2019-07-09 Thread Laurent Rosenfeld via perl6-users
Hi Marc, the French Wikipedia page you refer to is not really wrong, but rather terribly outdated and, therefore, no longer correct. I have a Wikipedia account and can easily fix that page (using, if needed, the updated English Wikipedia page on the same subject). Translating the whole Perl

Re: Announce: french perl workshop (Aka Journées Perl)

2019-05-23 Thread Laurent Rosenfeld via perl6-users
Hello Mark, I was thinking about submitting a talk on the P6 Object System, but I could also change it to Grammars (or do both). Cheers, Laurent. Le mar. 21 mai 2019 à 10:30, Marc Chantreux a écrit : > hello perl6 people, > > we hope there will be some events around the French Perl Worshop >

Re: FatRat's falling back to Num's

2019-04-19 Thread Laurent Rosenfeld via perl6-users
, Laurent. Le ven. 19 avr. 2019 à 21:47, Tom Browder a écrit : > On Fri, Apr 19, 2019 at 08:37 Laurent Rosenfeld via perl6-users < > perl6-us...@perl.org> wrote: > >> Hello, >> >> in the context of the Perl Weekly Challenge, I was trying to use one of >&

Re: FatRat's falling back to Num's

2019-04-19 Thread Laurent Rosenfeld via perl6-users
Rat) > (FatRat) > (FatRat) > (FatRat) > (FatRat) > (FatRat) > (FatRat) > (FatRat) > (FatRat) > (FatRat) > (FatRat) > (FatRat) > (FatRat) > (FatRat) > (FatRat) > (FatRat) > 3.141592653589793238462593174670682882792683045699610435

Re: FatRat's falling back to Num's

2019-04-19 Thread Laurent Rosenfeld via perl6-users
hey're > converted to Num and FatRat * Num = Num. > > On Fri, Apr 19, 2019 at 3:37 PM Laurent Rosenfeld via perl6-users < > perl6-us...@perl.org> wrote: > >> Hello, >> >> in the context of the Perl Weekly Challenge, I was trying to use one of >> Fran

FatRat's falling back to Num's

2019-04-19 Thread Laurent Rosenfeld via perl6-users
Hello, in the context of the Perl Weekly Challenge, I was trying to use one of Franco-Canadian mathematician Simon Plouffe's formulas to compute the digits of pi. For this, I have written the following subroutine: sub plouffe (Int $k) { my $result = (1 / 16 ** $k) * ( (4 / (8 * $k + 1))

Re: split and nils?

2019-02-06 Thread Laurent Rosenfeld via perl6-users
Brad told you already: use comb. Le mer. 6 févr. 2019 à 20:57, ToddAndMargo via perl6-users < perl6-us...@perl.org> a écrit : > On 2/6/19 5:19 AM, Brad Gilbert wrote: > > The reason there is a Nil, is you asked for the ord of an empty string. > > > > "".ord =:= Nil > > > > The reason there

Re: Roles are fundamentally broken?

2019-01-29 Thread Laurent Rosenfeld via perl6-users
Hi, I'm not an expert on OO programming, but my understanding of roles is that they make it possible to add some behaviors to a class (or to an object) while avoiding some of the pitfalls of inheritance, especially of multiple inheritance. So, even though I know about punning, I would tend to

Re: Exactly what is type match?

2018-12-21 Thread Laurent Rosenfeld via perl6-users
), orig => "abc", from => 1) b If you get a crash using it, I suspect you made another mistake somewhere. Please provide the exact P6 one-liner giving you a crash. Le ven. 21 déc. 2018 à 00:45, ToddAndMargo via perl6-users < perl6-us...@perl.org> a écrit : > On 12/20/18 2

Re: so as a method: Is this expected or a bug?

2018-12-21 Thread Laurent Rosenfeld via perl6-users
Hi Richard, I don't think it's a bug. In: put +@a.so; the @a array is coerced into a Boolean value (True) by the so method, and the resulting Boolean value is then coerced into an integer by the + operator. Cheers, Laurent. Le ven. 21 déc. 2018 à 09:28, Richard Hainsworth a écrit : > A

Re: Exactly what is type match?

2018-12-20 Thread Laurent Rosenfeld via perl6-users
~$0 *does *work with "perl6 -e" if you use correctly the tilde ~ operator. For example: $ perl6 -e ' "abc" ~~ /.(\w)./; say ~$0;' b Le jeu. 20 déc. 2018 à 23:44, ToddAndMargo via perl6-users < perl6-us...@perl.org> a écrit : > >> On Thu, Dec 20, 2018 at 5:17 PM ToddAndMargo via perl6-users >

Re: Exactly what is type match?

2018-12-20 Thread Laurent Rosenfeld via perl6-users
Match is a class defining the type of the objects that you get (for example in variable $/) when a regex match is successful or through regex captures into $0, $1, etc. or into named captures. JJ Merelo accurately responded that such objects can be coerced into strings with the tilde ~ prefix

Re: contains booboo

2018-12-19 Thread Laurent Rosenfeld via perl6-users
Hi Todd, first, please don't mix up the && Boolean operator and infix &, an *all* junction operator. Also consider the difference between the following code snippets: > my$x="abcd"; if $x.contains(not "e") {say "y"}else{say "n"}; n > my$x="abcd"; if $x.contains(none "e") {say "y"}else{say "n"};

Re: Perl6 use cases

2018-11-12 Thread Laurent Rosenfeld via perl6-users
Hi, answering a bit late, but better late than never. A couple of uses of Perl 6 at $work. I'm working, among other things, on a very large application running on VMS (about 3,500 programs). We"re using a few dozens Perl programs on these platforms, but we're stuck with a very old version of Perl

Re: Need Golf!

2018-11-08 Thread Laurent Rosenfeld via perl6-users
To me, using *map *in such a context is not the best (although it can obviously be done). IMHO, *map *is really intended to generate a list from another list. In your case, a *for *loop would make more sense to me. Even the use of *grep *(or *first*) would be more natural than *map*. But that's

Re: need :enc help?I

2018-10-15 Thread Laurent Rosenfeld via perl6-users
This is just a way to pass arguments in a method call. This is called the colon-pair syntax: https://docs.perl6.org/language/glossary#index-entry-Colon_Pair Le lun. 15 oct. 2018 à 12:08, ToddAndMargo via perl6-users < perl6-us...@perl.org> a écrit : > Hi All, > > Over on: >

Re: eof ?

2018-10-09 Thread Laurent Rosenfeld via perl6-users
Yes, you're right, it is a Seq. I was trying to be pedagogical, but probably wasn't very accurate. It is a Seq, and the "slurping" will be lazy. Le mar. 9 oct. 2018 à 15:30, Curt Tilmes a écrit : > On Tue, Oct 9, 2018 at 9:27 AM Laurent Rosenfeld via perl6-users < > p

Re: eof ?

2018-10-09 Thread Laurent Rosenfeld via perl6-users
This: my $f = $fh.lines; will slurp all the lines into $f (but you can still access the individual items with something like $f[4]). So you don't want to use this in a while loop, since everything will be consumed during the first loop iteration. Either use a for loop to process the lines one by

Re: eof ?

2018-10-09 Thread Laurent Rosenfeld via perl6-users
The eof method of the IO::Handle class returns True if you exhausted the contents of the handle, but you generally don't need to use that, since something like: for 'input.txt'.IO.lines -> $line { # Do something with $line } will gracefully handle ends of files for you without you having to

Re: <> thank you

2018-10-05 Thread Laurent Rosenfeld via perl6-users
Index out of range. Is: 3, should be in 0..0 > >>> in block at -e line 1 > >>> > >>> And you beat me to the punch! It was the <>. > >>> > >>> Thank you! > >>> > >>> -T >

Re: Feedback requested on playlist of 200 Perl 6 videos

2018-10-05 Thread Laurent Rosenfeld via perl6-users
This list is quite useful, thank you Raiph for it. I've found some that I did not know about. Cheers, Laurent. Le jeu. 4 oct. 2018 à 01:03, Ralph Mellor a écrit : > On Wed, Oct 3, 2018 at 6:16 AM David Green < > david.gr...@pl-comme.ci-comme.ca> wrote: > >> There are quite a few recorded P6

Re: <> thank you

2018-10-05 Thread Laurent Rosenfeld via perl6-users
Yeah, Todd, the angle brackets operator in produces a list of three words which you can access individually with an index, whereas quotes in "a b c d" creates a single string. But to come back to the start of a very long thread of discussion over the last days, if you want to access individual

Re: Could this be any more obscure?

2018-10-02 Thread Laurent Rosenfeld via perl6-users
Yes, [] acts on the result (a positional, e.g. a list) returned by function or method, it does not act on the function or method itself. You have more or less the same in Perl 5, for example: my $first_item = (split /;/, $string)[0]; Here, the [0] acts on the list returned by split. Le mar. 2

Re: Could this be any more obscure?

2018-09-30 Thread Laurent Rosenfeld via perl6-users
Hi Todd, I disagree with you. The P6 documentation can certainly be improved, but it is quite good and clear already. Remember that it is technical documentation, not a tutorial. And the example you chose to give does not support your point: the P6 documentation for join is just at least as clear

Re: Could this be any more obscure?

2018-09-30 Thread Laurent Rosenfeld via perl6-users
The star in the signature states that @list is a slurpy (or variadic) parameter, i.e. that @list will slurp up all remaining arguments provided to the subroutine. See: https://docs.perl6.org/type/Signature#index-entry-slurpy_argument Le dim. 30 sept. 2018 à 11:32, ToddAndMargo a écrit : > On

Re: Could this be any more obscure?

2018-09-30 Thread Laurent Rosenfeld via perl6-users
, 30 sept. 2018 a las 10:15, Laurent Rosenfeld via perl6-users > > (mailto:perl6-us...@perl.org>>) escribió: > > > > the words method is extracting items from an input string. The > > $limit parameter tells the words method to extract not more than > >

Re: Could this be any more obscure?

2018-09-30 Thread Laurent Rosenfeld via perl6-users
a écrit : > On 9/26/18 11:34 PM, JJ Merelo wrote: > > > > > > El mié., 26 sept. 2018 a las 23:31, Laurent Rosenfeld via perl6-users > > (mailto:perl6-us...@perl.org>>) escribió: > > > > You can set a limit to the number of items (words) you want to > &g

Re: Could this be any more obscure?

2018-09-27 Thread Laurent Rosenfeld via perl6-users
> I am NOT asking it to limit my request to Infinity. Yes you are, implicitly. If you don't pass any parameter for $limit, $limit will take the default value supplied by the signature, i.e. Inf. Le jeu. 27 sept. 2018 à 02:48, ToddAndMargo a écrit : > On 9/26/18 4:33 PM, The Sidhekin wrote: >

Re: Could this be any more obscure?

2018-09-26 Thread Laurent Rosenfeld via perl6-users
You can set a limit to the number of items (words) you want to retrieve: you will get only the first $limit words. If you don't supply any limit, Inf can be thought as the default value for the number of items, i.e. there is no limit and the routine will return as many words as it can from the

Re: A comparison between P5 docs and p6 docs

2018-09-11 Thread Laurent Rosenfeld via perl6-users
Hi Todd, I fully agree with Tom B.'s message that you should really set out to read a Perl 6 book. Many of the things you asked are covered in most of the available books. And the available books are easier than the official documentation for a beginner to start understand the basic underlying

Re: case insensitive "contains"?

2018-09-10 Thread Laurent Rosenfeld via perl6-users
ot;Yes" if "2018 xJul 7" ~~ m/j :i ul/; > > m/.../ - not m:i at the start! > > -y > > On Mon, Sep 10, 2018 at 4:54 AM, Laurent Rosenfeld via perl6-users < > perl6-us...@perl.org> wrote: > >> Hi Todd, >> >> you may use: >> >> say &quo

Re: case insensitive "contains"?

2018-09-10 Thread Laurent Rosenfeld via perl6-users
because the ignore case adverb would apply only on the 'ul' characters of the pattern, but not on the 'j'. More on adverbs in regexes: https://docs.perl6.org/language/regexes#Adverbs Cheers, Laurent. Le lun. 10 sept. 2018 à 00:00, ToddAndMargo a écrit : > On 09/08/2018 12:23 PM, Laurent Rosenf

Re: case insensitive "contains"?

2018-09-08 Thread Laurent Rosenfeld via perl6-users
Using the fc method is certainly a good way to do case insensitive string comparisons, but you may at this point also use a regex with the :i (ignore case) adverb. > if "2018 xJul 7" ~~ /:i jul/ {say "Yes";} Yes Le sam. 8 sept. 2018 à 00:56, ToddAndMargo a écrit : > On 09/07/2018 03:49 PM,

Re: A grammar to provide substitution

2018-08-29 Thread Laurent Rosenfeld via perl6-users
- Timo > > On 28/08/18 20:04, Laurent Rosenfeld via perl6-users wrote: > > Hi Patrick, > > for note that this codeline: > > my Str $input = "Here > be a $(placeholder), for $(purpose) purposes."; > > will not compile > because Perl will try to interpol

Re: A grammar to provide substitution

2018-08-28 Thread Laurent Rosenfeld via perl6-users
Hi Patrick, for note that this codeline: my Str $input = "Here be a $(placeholder), for $(purpose) purposes."; will not compile because Perl will try to interpolate $(placeholder) and $(purpose) as vairables that have not been declared. You need to use non interpolating quotes: my Str $input

Re: Special token names, or my mistake

2018-08-12 Thread Laurent Rosenfeld via perl6-users
Hi Yary, I'm not sure whether this is really the reason, but sum is the name of a built-in function (see https://docs.perl6.org/routine/sum). It seems that the compiler interprets your token as a subroutine call of that builtin. HTH, Laurent. 2018-08-12 9:28 GMT+02:00 yary : > If I call a

Re: OT: catch the bash error?

2018-08-04 Thread Laurent Rosenfeld via perl6-users
I'm really not very good at bash scripting (because I would almost always to such things in Perl), but I guess that the initial $G is an error (there should not be a $ sigil). 2018-08-04 7:08 GMT+02:00 ToddAndMargo : > Hi All, > > I wanted to do a mass rename of "Apple.*" to "Mac.*" with > bash

Re: need regex help

2018-08-02 Thread Laurent Rosenfeld via perl6-users
Set operations seem to be unsupported on predefined character classes (or subrules). (Or, if they are supported, I don't know what the right syntax might be.) Set operations seem to work properly, though, with escaped character classes. For example: perl6 -e 'my $x = "9.0v1"; say so $x ~~ /<[\w]

Re: start up delay?

2018-08-01 Thread Laurent Rosenfeld via perl6-users
Yes, I agree, start-up time is sometimes quite long. But sorry, I do not have a solution. Best, Laurent. 2018-08-01 20:14 GMT+02:00 ToddAndMargo : > Hi All, > > Is it just me or does Perl 6 take about three times as long to > start up as Perl 5? I do have a very fast machine and it takes >

Re: parsing in different modes

2018-08-01 Thread Laurent Rosenfeld via perl6-users
Hi Theo, You probably cannot use a grammar rule to change a dynamic variable (unless you include some action code into the rule), I agree, but I think you can use an action method attached to a rule to do it. I have actually done it recently in a real $work grammar that I intend to present at The

Re: parsing in different modes

2018-08-01 Thread Laurent Rosenfeld via perl6-users
Theo, if you define a dynamic variable (with the * twigil, for example $*mode)) in the section of the code right before calling the parse (or equivalent) method, then your actions class should be able to read it and to modify it when needed. Then, it is a matter of defining your action methods to

Re: parsing in different modes

2018-08-01 Thread Laurent Rosenfeld via perl6-users
Hi Theo, have you considered using only one grammar but simply calling it with two different actions classes as a parameter depending on the mode you want to use? 2018-08-01 16:41 GMT+02:00 Theo van den Heuvel : > > > Hi Perl6-people, > > I am looking for some inspiration. I am working with a

Re: What does ^parents really tell you?

2018-07-29 Thread Laurent Rosenfeld via perl6-users
Hi, Try this: my $stringy = "abc"; say $stringy.^parents(:all); This should display: ((Cool) (Any) (Mu)) Cheers, Laurent. 2018-07-29 19:27 GMT+02:00 Joseph Brenner : > If you look at the type diagram: > > https://docs.perl6.org/type/Str#___top > > You can see that: >Str is Cool is

Re: MAIN subroutine

2018-07-19 Thread Laurent Rosenfeld via perl6-users
pile time. Which means MAIN has to run after all such, or > variables won't be initialized properly. > > Most commonly you would not combine a MAIN sub with non-declaring code. > > On Thu, Jul 19, 2018 at 5:32 PM Laurent Rosenfeld via perl6-users < > perl6-us...@perl.org>

MAIN subroutine

2018-07-19 Thread Laurent Rosenfeld via perl6-users
Hi folks, The documentation for the MAIN sub says that "the sub with the special name MAIN is executed after all relevant phasers." My understanding is that MAIN automatically executes before any code other than phasers happening at compile time or at the end or right after the end of