Re: Is there a backward "for @"

2018-05-15 Thread Brock Wilcox
Slightly more idiomatic might be `next unless $line`. On Tue, May 15, 2018 at 7:39 PM ToddAndMargo wrote: > On 05/15/2018 04:34 PM, ToddAndMargo wrote: > > On 05/15/2018 03:49 PM, Larry Wall wrote: > >> On Tue, May 15, 2018 at 03:31:07PM -0700, ToddAndMargo wrote: > >> :

Re: Any way to get hashes to loop in order?

2017-09-30 Thread Brock Wilcox
Maybe a list/array of pairs would be better, and then cast it to a hash if you need to do fast lookups. On Sep 30, 2017 12:41 PM, "Parrot Raiser" <1parr...@gmail.com> wrote: > Prepending the real key value with an order indicator, then sorting > the retrieved list on the key would achieve that,

Re: Running external CLI tool and capturing output

2017-08-10 Thread Brock Wilcox
How about qx and qxx? I guess those don't separate/capture stderr, and don't separate out the params. --Brock On Thu, Aug 10, 2017 at 10:57 AM, Gabor Szabo <szab...@gmail.com> wrote: > The documentation has a nice example showing how to run an external > program and how to ge

Re: User defined infix operators and whitespace

2017-08-10 Thread Brock Wilcox
# postfix. This used to work but maybe doesn't now dice[ 2d6 ] # circumfix And then the third thing that comes to mind is adding a slang, though that is, I believe, the least stable language-level approach. Dunno. --Brock On Thu, Aug 10, 2017 at 7:16 AM, Simon Proctor <simon.proc...@gmail.com&

Re: Perl6 shell, Was: command auto-completion in perl6 shell

2017-05-31 Thread Brock Wilcox
really well, and likely to do that in userspace as a regular module. Moving everything into REPL.pm (perl6 instead of nqp) lets us use de-facto interfaces and easily override it in a user module. --Brock On Wed, May 31, 2017 at 9:05 AM, Parrot Raiser <1parr...@gmail.com> wrote

Re: Perl 5 list assignment idiom

2017-03-13 Thread Brock Wilcox
h the assignment. --Brock On Mon, Mar 13, 2017 at 3:56 PM, Sean McAfee <eef...@gmail.com> wrote: > sub one-thing { return ("hi",) }

Re: Need Inline::Perl5 help

2017-03-05 Thread Brock Wilcox
= color('reset'); print ( $Red ~ "--Red--" ~ $Reset ~ "\n\n" ); You can also refer to this function with Term::ANSIColor::color(...). --Brock On Sat, Mar 4, 2017 at 1:15 AM, ToddAndMargo <toddandma...@zoho.com> wrote: > Hi All, > > I am trying to write mysel

Re: per 5 converter?

2017-02-12 Thread Brock Wilcox
Also http://perldoc.perl.org/perlsub.html#Signatures for perl5 signatures. Use it everywhere! Promote it to be on by default! Go team! On Sun, Feb 12, 2017 at 8:12 PM, Darren Duncan wrote: > On 2017-02-12 5:08 PM, ToddAndMargo wrote: > >> I presume my eyes would tell

Re: Startup performance on OS X

2016-10-03 Thread Brock Wilcox
It seems like Moose vs built-in-oop/mop is a very indirect comparison. Now I'm wondering what nqp or moarvm startups are like. On Oct 3, 2016 06:14, "Elizabeth Mattijsen" wrote: > > On 02 Oct 2016, at 11:00, Thor Michael Støre > wrote: > > > > Hey

Re: Learn Perl 6

2016-09-28 Thread Brock Wilcox
Good feedback. I just did a similar search in a fresh (incognito) browser with similar, though not quite as bad, results. All the top things at least are active and have links to good stuff. I don't know what "SixFix" is, but I signed up :) On Wed, Sep 28, 2016 at 8:56 PM, Sayth Renshaw

Re: Observations from a C++/Python developer that never used Perl5

2016-09-09 Thread Brock Wilcox
Quotes are almost a circumfix operator, but they act a bit more like a macro by controlling the parsing of the contents. But you can do some weird things like define your own quote-likes. perl6 -e ' sub circumfix:<>($v) { "{$v}" } ; say B"foo"B ' # output: foo or more verbosely perl6 -e ' sub

Re: can Perl 6 bootstrap itself

2016-08-25 Thread Brock Wilcox
Simplification of Rakudo's build process is an ongoing process, and I see progress all the time. Remember also that Rakudo is the most active and complete implementation of Perl 6, but that there can and should be other completely separate implementations. On Aug 25, 2016 1:37 PM, "Dipesh

Re: Killer Features of Perl 6

2016-08-22 Thread Brock Wilcox
Correct -- there are some excellent REPLs for perl5 such as Devel::REPL and tinyrepl. The advantage for Perl 6 will be (but is not yet) it's multi-threaded friendliness. I am slowly working on the tools to build something like clojure's nREPL -- a client/server repl where your console, editor,

Re: DBIish: Why can't I interpolate variable holding database name?

2016-05-01 Thread Brock Wilcox
Right - use parenthesis in colon-pair parameters to get the variable inside. You could use :database<<$db>> to make it like a double-quoted string. Or my favorite is to use regular => as in database => $db --Brock On May 1, 2016 09:13, "Mathieu Gagnonn" <math...@ga

Re: Where do I need to put a pm6 file?

2016-05-01 Thread Brock Wilcox
I recommend putting your module into a 'lib' dir near your script. Then in your script add: use lib 'lib'; That way you don't have to add the -l param. On May 1, 2016 09:21, "Fernando Santagata" wrote: > Hello, > > I'm trying to write a module and make a program

Re: can a method name contain a funny character?

2016-04-12 Thread Brock Wilcox
say "method got $x" } } > Foo.new.Δ(23) method got 23 --Brock On Tue, Apr 12, 2016 at 9:26 AM, Theo van den Heuvel <vdheu...@heuvelhlt.nl> wrote: > @Parrot Raiser and @Luca. I will make sure to add Texan alternatives in > case other people need to take over. > I use triangle

Re: can a method name contain a funny character?

2016-04-10 Thread Brock Wilcox
Maybe try it without the term, just "method funnychar (..." On Apr 10, 2016 09:23, "Theo van den Heuvel" wrote: > Hi perl6 fans, > > I can use funny characters in operators or in sub names (using > term:<...>). However, when I try the same thing with an operator as in: > >

Re: books on p6?

2016-03-10 Thread Brock Wilcox
Yes, that is out of date. I don't know of any existing books or public efforts to write ones. We welcome contributions to docs.perl6.org, including tutorials, walk-throughs, etc (beyond just references). That resource is getting better, but slowly :) --Brock On Thu, Mar 10, 2016 at 3:59 AM

Re: Confused about rakudobrew and Rakudo Star

2016-02-08 Thread Brock Wilcox
What I mean is that if rakudo 2016.02, 2016.03, etc are released, I can still do rakudobrew build moar 2016.01.1 to get the rakudo that is bundled in the Rakudo Star 2016.01 release. --Brock On Mon, Feb 8, 2016 at 3:01 AM, Moritz Lenz <mor...@faui2k3.org> wrote: > On 02/06/2016

Re: Confused about rakudobrew and Rakudo Star

2016-02-05 Thread Brock Wilcox
lt;allber...@gmail.com> > wrote: > > On Thu, Feb 4, 2016 at 7:44 AM, Brock Wilcox <awwa...@thelackthereof.org > > > > wrote: > >> > >> I see Moritz replied to this also saying that the tarball is the way to > >> go. I'd love to know what I'm

Re: Confused about rakudobrew and Rakudo Star

2016-02-04 Thread Brock Wilcox
16.01" and get the exact same thing. I see Moritz replied to this also saying that the tarball is the way to go. I'd love to know what I'm missing out on by doing it this way. --Brock On Thu, Feb 4, 2016 at 7:26 AM, James E Keenan <jk...@verizon.net> wrote: > On 02/03/2016 10:48 PM, Br

Re: Needed: Rakudo Star with 6.c Christmas Perl 6 release

2016-01-16 Thread Brock Wilcox
I think folks were shooting for sometime-this-month. On Jan 16, 2016 1:40 PM, "James E Keenan" wrote: > Today, I posted on the ny.pm mailing list an announcement that I will > attempt to organize a Perl 6 Beginners study group in New York City. > > I have been advised that for

Re: release?

2015-12-31 Thread Brock Wilcox
n mostly in Perl6 (lots of other interesting Perlito stuff) * http://perl6.org/compilers/features - comparison * several abandoned ones (e.g. Pugs) --Brock

Re: release?

2015-12-28 Thread Brock Wilcox
Rakudo, as far as I know, passes all of the 6.c tests :). But that might mean that we need more tests! On Dec 28, 2015 04:37, "Amir E. Aharoni" wrote: > My understanding is that the happy and long-awaited release announcement > was done on Christmas out of tradition of

Re: Perl 6.c!!

2015-12-27 Thread Brock Wilcox
No substantial rumors that I've heard. I've been contributing to doc.perl6.org, maybe we can get that good enough to bind :) On Dec 27, 2015 05:35, "Tom Browder" wrote: > Thank you Perl 6 devs--what a great Christmas present! > > Now I'm looking forward to buying my first

Re: Constants as members of a class

2015-12-17 Thread Brock Wilcox
Two things jump out at me. One is that I think you don't need that "new" method. Second -- yes, this is a very old interpreter. I unfortunately don't know about the twigil variable constant things. --Brock On Thu, Dec 17, 2015 at 9:46 PM, TS xx <maringa...@hotmail.com> wrot

Re: [rbw3@cse.nau.edu: Re: Junctive puzzles.]

2005-02-09 Thread Brock
On 2005.02.08.19.07, Matt Fowles wrote: | Brock~ | | | On Tue, 8 Feb 2005 12:08:45 -0700, Brock [EMAIL PROTECTED] wrote: | | Hm. I take that back... it was a silly comment to make and not very | mathematically sound. Sorry. | | --Brock | | - Forwarded message from Brock [EMAIL

Re: Junctive puzzles.

2005-02-08 Thread Brock
if I missed this discussed previously. --Brock

[rbw3@cse.nau.edu: Re: Junctive puzzles.]

2005-02-08 Thread Brock
Hm. I take that back... it was a silly comment to make and not very mathematically sound. Sorry. --Brock - Forwarded message from Brock [EMAIL PROTECTED] - Date: Tue, 8 Feb 2005 12:06:58 -0700 From: Brock [EMAIL PROTECTED] To: Autrijus Tang [EMAIL PROTECTED] Cc: perl6-language@perl.org