### Re: string to integer?

Prefix + numifies, prefix ~ stringifies. pyanfar Z\$ 6 'my Str \$a = "5"; dd +\$a' 5 pyanfar Z\$ 6 'my Int \$a = 5; dd ~\$a' "5" On Mon, Aug 6, 2018 at 4:59 PM ToddAndMargo wrote: > Hi All, > > How do I assign a string that looks like an integer > into an interger? > > \$str = "601" -- > \$int = 601

### Re: Force integers in an array?

On 08/06/2018 01:44 PM, Curt Tilmes wrote: On Mon, Aug 6, 2018 at 4:40 PM ToddAndMargo > wrote: Is there a way to force all the members of an array to be integers and to error out is a non-integer is written to one of its cells? Sure, from the

### Re: Force integers in an array?

On 08/06/2018 01:42 PM, Brad Gilbert wrote: my Int @a; @a[0] = '1' Type check failed in assignment to @a; expected Int but got Str ("1") in block at line 1 On Mon, Aug 6, 2018 at 3:39 PM ToddAndMargo wrote: Hi All, Is there a way to force all the members of an array to be integers and

### string to integer?

Hi All, How do I assign a string that looks like an integer into an interger? \$str = "601" -- > \$int = 601 Many thanks, -T

### Re: Force integers in an array?

On Mon, Aug 6, 2018 at 4:40 PM ToddAndMargo wrote: > Is there a way to force all the members of an array > to be integers and to error out is a non-integer > is written to one of its cells? > Sure, from the examples in the docs: https://docs.perl6.org/language/list#Typing my Int @a = 1, 2, 3;

### Re: Force integers in an array?

> my Int @a; > @a[0] = '1' Type check failed in assignment to @a; expected Int but got Str ("1") in block at line 1 On Mon, Aug 6, 2018 at 3:39 PM ToddAndMargo wrote: > > Hi All, > > Is there a way to force all the members of an array > to be integers and to error out is a non-integer > is

### Force integers in an array?

Hi All, Is there a way to force all the members of an array to be integers and to error out is a non-integer is written to one of its cells? Many thanks, -T

### Announce: Rakudo Star Release 2018.06

On behalf of the Rakudo and Perl 6 development teams, I'm pleased to announce the June 2018 release of "Rakudo Star", a useful and usable production distribution of Rakudo Perl 6. The tarball for this release is available from . Binaries for macOS and

### Re: Creating the August 2018 Perl6 survey

Is there a Github repo of sorts to which people can add Pull Requests / comment upon? > On 6 Aug 2018, at 03:13, Benji wrote: > > We're working on polishing up questions / adding new questions for the next > Perl6 user survey. If you'd like an invitation to change/add questions, hop > on the

### Re: parsing in different modes

sorry, false alarm. It does work as advertised. Theo van den Heuvel Theo van den Heuvel schreef op 2018-08-03 22:39: Hi all, My attempt at a solution below does not work. In larger examples the decr gets called before the actions within Sum are processed. Maybe my hunch that this would cause

### Re: start up delay?

Are you using a 32 bit version of perl6? If so it has no Just in Time (JIT) compiler and will be very much slower. S On Wed, 1 Aug 2018 at 19:15, ToddAndMargo wrote: > > 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

### Re: start up delay?

-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 If you're writing a runnable script in Perl 6, I would recommend to *always* use a MAIN sub[1]. If you're using that, you can easily achieve the precompilation as well, with 1 line of code less. You'd have your code in lib/Your/Program/Main.pm6:

### Re: start up delay?

So Perl6 is a lot like Python in that modules get compiled to byte code making them a lot faster to parse the second time around. If you're running a 6000 line script then a lot of time is going to be spent parsing your script every time you run it. If you instead take all your script code and

### Re: start up delay?

On 08/06/2018 02:07 AM, ToddAndMargo wrote: On 08/06/2018 01:02 AM, Simon Proctor wrote: Sorry I wrote my earlier email on my phone without a computer to hand. Here's a quick rundown on what I'm talking about. --stagestats gives you the breakdown on how much time is spent doing various steps

### Re: start up delay?

On 08/06/2018 01:02 AM, Simon Proctor wrote: Sorry I wrote my earlier email on my phone without a computer to hand. Here's a quick rundown on what I'm talking about. --stagestats gives you the breakdown on how much time is spent doing various steps (note that using time instead of date; date

### Re: start up delay?

Sorry I wrote my earlier email on my phone without a computer to hand. Here's a quick rundown on what I'm talking about. --stagestats gives you the breakdown on how much time is spent doing various steps (note that using time instead of date; date gives you a better timing of how long something

### Re: start up delay?

On Sun, 5 Aug 2018, 23:45 Elizabeth Mattijsen, > wrote: > On 1 Aug 2018, at 20:14, ToddAndMargo mailto:toddandma...@zoho.com>> wrote: > 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

### Re: start up delay?

On 08/01/2018 01:15 PM, Elizabeth Mattijsen wrote: On 1 Aug 2018, at 20:14, ToddAndMargo wrote: 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 about seven see for some of my Perl 6 stuff to get past the ruminating