Re: What is P6 for P5 `use Term::ReadKey`?

2017-09-15 Thread ToddAndMargo
On 09/13/2017 01:36 PM, Trey Harris wrote: On Sat, Sep 9, 2017 at 3:55 PM ToddAndMargo toddandma...@zoho.com wrote: On 09/09/2017 07:00 AM, Timo Paulssen wrote: > This should be

What is this things official name?

2017-09-15 Thread ToddAndMargo
Hi All, When you see things like > method getc(IO::Handle:D: --> Str:D) > multi sub getc (IO::Handle $fh = $*ARGFILES --> Str:D) in the documentation pages, what is the official name? Many thanks, -T

Re: Who called me?

2017-09-15 Thread ToddAndMargo
On 09/13/2017 04:56 PM, ToddAndMargo wrote: Hi All, I am trying to convert this from Perl 5: my $WhoCalledMe = ( caller(0) )[1]; I use it inside a sub to determine who called the sub. How is this done in P6? Many thanks, -T Follow up: With a lot of help from the chat line, it

Re: :: question

2017-09-15 Thread ToddAndMargo
On 09/13/2017 10:57 PM, Brandon Allbery wrote: On Thu, Sep 14, 2017 at 1:48 AM, Brandon Allbery > wrote: If you want to use the other way, the CheckSystemDependency module MUST define Which as: our sub Which ... If it is not

Re: Any "note" without the "say"?

2017-09-15 Thread ToddAndMargo
On 09/15/2017 01:54 PM, Brandon Allbery wrote: On Fri, Sep 15, 2017 at 4:51 PM, ToddAndMargo > wrote: On 09/15/2017 01:29 PM, Brandon Allbery wrote: Everyone does at one time :) It's really useful for debugging, but you

Re: Any "note" without the "say"?

2017-09-15 Thread ToddAndMargo
On 09/15/2017 01:48 PM, Andy Bach wrote: So "note" $ perl6 -e 'note "hi mom"' > /dev/null hi mom replaces "warn ...\n" or $ perl6 -e 'warn "hi mom\n"' > /dev/null hi mom in block at -e line 1 have I forgotten my p6 newline syntax (again)? Hi Andy, Oh goody. I get to help someone for

Re: Any "note" without the "say"?

2017-09-15 Thread Patrick R. Michaud
On Fri, Sep 15, 2017 at 04:54:33PM -0400, Brandon Allbery wrote: > On Fri, Sep 15, 2017 at 4:51 PM, ToddAndMargo wrote: > > On 09/15/2017 01:29 PM, Brandon Allbery wrote: > >> Everyone does at one time :) It's really useful for debugging, but you > >> generally strip it out

Re: Any "note" without the "say"?

2017-09-15 Thread Brandon Allbery
On Fri, Sep 15, 2017 at 4:51 PM, ToddAndMargo wrote: > On 09/15/2017 01:29 PM, Brandon Allbery wrote: > >> Everyone does at one time :) It's really useful for debugging, but you >> generally strip it out of production code. >> > > I saw a business study somewhere (I don't

Re: Any "note" without the "say"?

2017-09-15 Thread ToddAndMargo
On 09/15/2017 01:29 PM, Brandon Allbery wrote: Thank you for the confirmation. Searching for something like this brings up a bazillion Perl 5 hits. Oh well, neither is "note". Someone must have had a special need for it at one time. Everyone does at one time :) It's really

Re: Any "note" without the "say"?

2017-09-15 Thread Andy Bach
> > > Oh well, neither is "note". Someone must have > had a special need for it at one time. > > Everyone does at one time :) It's really useful for debugging, but you generally strip it out of production code. So "note" $ perl6 -e 'note "hi mom"' > /dev/null hi mom replaces "warn ...\n" or $

Re: Any "note" without the "say"?

2017-09-15 Thread ToddAndMargo
On 09/15/2017 12:52 PM, Brandon Allbery wrote: On Fri, Sep 15, 2017 at 3:48 PM, ToddAndMargo > wrote: Is there a similar "print" to the STDERR for when you don't want the cr-lf inserted? The hard way: $*ERR.print: "print to

Re: Any "note" without the "say"?

2017-09-15 Thread Brandon Allbery
On Fri, Sep 15, 2017 at 3:48 PM, ToddAndMargo wrote: > Is there a similar "print" to the STDERR for when > you don't want the cr-lf inserted? > > The hard way: > $*ERR.print: "print to std err\n"; > That's it. It's not really common enough to deserve something shorter.

Any "note" without the "say"?

2017-09-15 Thread ToddAndMargo
Hi All, Thanks to the guys on the chat line, I found out about "note", which is "say" to the STDERR. Is there a similar "print" to the STDERR for when you don't want the cr-lf inserted? The hard way: $*ERR.print: "print to std err\n"; Many thanks, -T