Re: using run

2018-06-20 Thread Jonathan Scott Duff
If you don't specify the :out adverb, then the output of the program you are running will be sent to standard output. Immediately when the program executes. If you specify the :out adverb, output from the program will be available for capture via the $proc.out method. A similar thing applies for

Re: need s/ help

2018-05-01 Thread Jonathan Scott Duff
On Tue, May 1, 2018 at 8:37 AM, ToddAndMargo wrote: > Hi All, > > I am trying to change the last three letters of a string > > $ perl6 -e 'my $x="abcabcabc"; $x ~~ s/"a.*"$/xyz/; say $x;' > The double quotes around your text make it a string literal, so it will only match the literal string "a.*

Re: Does words have a delimiter?

2018-04-13 Thread Jonathan Scott Duff
Looking at that page myself, it doesn't appear that you can specify the separator for .words. So ... no. Though, that would make an interesting addition IMHO -Scott On Sat, Apr 14, 2018 at 12:27 AM, ToddAndMargo wrote: > Hi All, > > I am over on > https://docs.perl6.org/routine/words > an

Re: learning perl6?

2016-01-04 Thread Jonathan Scott Duff
If, by "regular book", you mean "bound paper sheafs with ink on them", then the answer is currently "no". Is there something wrong with the documentation online? (besides there not being enough of it :) -Scott On Mon, Jan 4, 2016 at 9:55 PM, Yonghua Peng wrote: > Hello, > > Is there a regular

Re: grep changes?

2015-10-05 Thread Jonathan Scott Duff
The block does get the topic, but the regex isn't executing immediately. Another way to get what you want, rather than mentioning the topic explicitly, is to use the m// form of match. > grep { m/\.pl6/ }, (a.pl6) For sanity's sake, I would recommend writing your match-immediately regex like th

Re: Strict Rakudo version of this Perl5 one-liner

2015-09-01 Thread Jonathan Scott Duff
If you're not married to the "key : value" format, you could use this: scan +spam | perl6 -ne 'my %d; %d{.words[1]}++; END { .say for sort %d }' Here's another variation, but keeping your original format: scan +spam | perl6 -ne 'my %d; %d{.words[1]}++; END { say "$_.key() : $_.value()"

Re: s:g/T/U/ doesn't work ?

2012-10-24 Thread Jonathan Scott Duff
I imagine it's the same problem as this Perl 5 code: use Test::More; for ('GATGGAACTTGACTACGTAAATT') { s/T/U/g; is $_, 'GAUGGAACUUGACUACGUAAAUU', 'RNA'; } Since $_ is an alias for each element of the list and the only element in the list is a constant string and you can't modify constan

Re: Current vs future Perl 6 binary size

2011-04-21 Thread Jonathan Scott Duff
On Thu, Apr 21, 2011 at 6:33 PM, gvim wrote: > This is not a criticism of anything. I am not a core developer but need to > be aware of what to expect when Perl 6 settles down into a production-ready > state. The Perl 6 binary within the January release of Rakudo Star is 10Mb > on my Snow Leopard

Rakudo Perl 6 development release #22 ("Thousand Oaks")

2009-10-23 Thread Jonathan Scott Duff
and codenames for 2009 is available in the "docs/release_guide.pod" file. In general, Rakudo development releases are scheduled to occur two days after each Parrot monthly release. Parrot releases the third Tuesday of each month. Have fun! -Scott -- Jonathan Scott Duff perlpi...@gmail.com

Re: Stubborn coworkers

2006-08-29 Thread Jonathan Scott Duff
gs better. Et cetera. Does she also have some problem with perl5? It sounds like she's just trying to apply the "perl is line noise" argument but only for perl6. IMHO, the same counter arguments apply. -Scott -- Jonathan Scott Duff [EMAIL PROTECTED]

Re: [ANNOUNCE] Pugs 6.2.12 and v6.pm released! (reformatted)

2006-07-10 Thread Jonathan Scott Duff
t has an indirect dependency on > Devel::Caller which fails to work using that compiler combination (i.e., > fails all tests after a build using its makefile and Visual Studio 2003 as > the C compiler). Bummer. You could check out the Vanilla/Strawberry Perl effort at http://win32.p

Re: Can foo("123") dispatch to foo(Int) (was: Mutil Method Questions)

2006-06-23 Thread Jonathan Scott Duff
ument type appears in the "does list" of the Signature, then it's a match and all is well. Otherwise it's an error. Since "Num does Int", a call such as C succeeds. At least that's my vague interpretation of this aspect of perl6 at this moment. :-) -Scott -- Jonathan Scott Duff [EMAIL PROTECTED]

Re: Mutil Method Questions

2006-06-23 Thread Jonathan Scott Duff
On Fri, Jun 23, 2006 at 06:55:28PM +0300, Markus Laire wrote: > On 6/23/06, Jonathan Scott Duff <[EMAIL PROTECTED]> wrote: > >An alternate interpretation would be that the last one is actually a > >compile- > >time error because none of the sigs match (Int,Int) and f

Re: Mutil Method Questions

2006-06-23 Thread Jonathan Scott Duff
x27;d need to be explicit: talk(~123,3); But I'm not sure which way perl6 actually leans. Though it seems to me that automatic type conversion by the compiler is a way to get yourself in trouble. Not that perl shouldn't let the programmer get himself in trouble, but this seems like one of those things that should require asking to turn on rather than asking to turn off. my two cents, -Scott -- Jonathan Scott Duff [EMAIL PROTECTED]

Re: Simple Print/Say Question

2006-05-24 Thread Jonathan Scott Duff
t). If you're going to type @results, maybe it needs to be: my @results is Array of Array of int; or maybe my Array of int @results; Or something like that :-) -Scott -- Jonathan Scott Duff [EMAIL PROTECTED]

Re: Windows Binaries for Pugs

2006-05-19 Thread Jonathan Scott Duff
he way to go. Binaries are definitely worth it to give people something to play with (especially on difficult platforms like Windows). It doesn't have to be the latest and greatest, it just has to implement a large-enough feature set. -Scott -- Jonathan Scott Duff [EMAIL PROTECTED]