Re: qqx with quotes

2020-02-26 Thread ToddAndMargo via perl6-users
On 2020-02-26 18:41, Tom Browder wrote: On Wed, Feb 26, 2020 at 19:47 ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> ... Hmm, this don't [sic] work either: perl6 -e "my $proc=run( 'dir', 'test 1', :out ); my @RtnStr  = $$proc. out.slurp-rest.lines; for @RtnStr -> $Line

Re: qqx with quotes

2020-02-26 Thread Tom Browder
On Wed, Feb 26, 2020 at 19:47 ToddAndMargo via perl6-users < perl6-users@perl.org> ... > Hmm, this don't [sic] work either: > > perl6 -e "my $proc=run( 'dir', 'test 1', :out ); my @RtnStr = $$proc. > out.slurp-rest.lines; for @RtnStr -> $Line { say $Line;}" Todd, sloppy copy/paste or error

Re: qqx with quotes

2020-02-26 Thread ToddAndMargo via perl6-users
On 2020-02-26 15:37, ToddAndMargo via perl6-users wrote: On 2020-02-26 15:11, ToddAndMargo via perl6-users wrote: On 2020-02-26 15:06, Norman Gaywood wrote: I don't have a windows system to test, but in all the examples shown I did not see: qqx{ C:/Windows/System32/fsutil.exe usn readdata

Re: qqx with quotes

2020-02-26 Thread ToddAndMargo via perl6-users
On 2020-02-26 15:11, ToddAndMargo via perl6-users wrote: On 2020-02-26 15:06, Norman Gaywood wrote: I don't have a windows system to test, but in all the examples shown I did not see: qqx{ C:/Windows/System32/fsutil.exe usn readdata "$FileName" }; which is how I would have expected to write

Re: qqx with quotes

2020-02-26 Thread ToddAndMargo via perl6-users
On 2020-02-26 15:06, Norman Gaywood wrote: I don't have a windows system to test, but in all the examples shown I did not see: qqx{ C:/Windows/System32/fsutil.exe usn readdata "$FileName" }; which is how I would have expected to write the command. That is the way I do it in Linux too.

Re: qqx with quotes

2020-02-26 Thread Norman Gaywood
I don't have a windows system to test, but in all the examples shown I did not see: qqx{ C:/Windows/System32/fsutil.exe usn readdata "$FileName" }; which is how I would have expected to write the command. On Thu, 27 Feb 2020 at 09:49, ToddAndMargo via perl6-users < perl6-users@perl.org> wrote:

Re: qqx with quotes

2020-02-26 Thread ToddAndMargo via perl6-users
> *From:* ToddAndMargo via perl6-users > *Sent:* Tuesday, February 25, 2020 11:12 AM > *To:* perl6-users@perl.org > *Subject:* Re: qqx with quotes >>> On Mon, Feb 24, 2020 at 4:01 PM ToddAndMargo via perl6-users >>> mailto:perl6-users@perl.org>> wrote: >>> >>> Hi All, >>> >>> Windows 7

Re: qqx with quotes

2020-02-26 Thread Andy Bach
@Result = qqx { C:/Windows/System32/fsutil.exe usn readdata \"$FileName\" }.lines; Doesn't windows do something special for files with spaces in them? Hm, $ type "hi mom" > "test 1" $ dir test $ dir "test 1" but, you're right, I couldn't find a combination of dbl, single, q, qq, qqx, qx

Re: irrational nubmer?

2020-02-26 Thread ToddAndMargo via perl6-users
On 2020-02-26 12:14, Tobias Boege wrote: On Wed, 26 Feb 2020, ToddAndMargo via perl6-users wrote: $ p6 'say (99/70).base-repeating();' (1.4 142857) means that 142857 also repeats (it does not), but that it is best it can figure out with the precision it has? What are you talking about? It

Re: irrational nubmer?

2020-02-26 Thread ToddAndMargo via perl6-users
On 2020-02-26 12:21, William Michels via perl6-users wrote: This code below seems to accurately return the number of "repeating digits" (576) using Perl6 alone: mbook: homedir$ perl6 -e 'say

Re: irrational nubmer?

2020-02-26 Thread William Michels via perl6-users
This code below seems to accurately return the number of "repeating digits" (576) using Perl6 alone: mbook: homedir$ perl6 -e 'say

Re: irrational nubmer?

2020-02-26 Thread Tobias Boege
On Wed, 26 Feb 2020, ToddAndMargo via perl6-users wrote: > > > $ p6 'say (99/70).base-repeating();' > > > (1.4 142857) > > > > > > means that 142857 also repeats (it does not), but > > > that it is best it can figure out with the precision > > > it has? > > > > > > > What are you talking about?

Re: irrational nubmer?

2020-02-26 Thread ToddAndMargo via perl6-users
On 2020-02-26 11:34, Peter Scott wrote: On 2/26/2020 11:14 AM, ToddAndMargo via perl6-users wrote: I used gnome calculator to 20 digits:     665857/470832     1.41421356237468991063 Sorry.  Not seeing any repeating patterns. Here is NAS doing it to 1 million digits (they have too much time on

Re: irrational nubmer?

2020-02-26 Thread Peter Scott
On 2/26/2020 11:14 AM, ToddAndMargo via perl6-users wrote: I used gnome calculator to 20 digits:     665857/470832     1.41421356237468991063 Sorry.  Not seeing any repeating patterns. Here is NAS doing it to 1 million digits (they have too much time on their hands):

Re: irrational nubmer?

2020-02-26 Thread ToddAndMargo via perl6-users
On 2020-02-26 08:20, Tobias Boege wrote: On Wed, 26 Feb 2020, Todd Chester via perl6-users wrote: Hi Tobias, I am confused as to as to what you mean by numerator and denominator. Rational numbers can always be written as the ratio of two integers: a/b with b non-zero. One calls a the

Re: irrational nubmer?

2020-02-26 Thread Tobias Boege
On Wed, 26 Feb 2020, Todd Chester via perl6-users wrote: > Hi Tobias, > > I am confused as to as to what you mean by numerator and > denominator. > Rational numbers can always be written as the ratio of two integers: a/b with b non-zero. One calls a the numerator and b the denominator. In Raku

Re: irrational nubmer?

2020-02-26 Thread Todd Chester via perl6-users
On 2020-02-20 22:32, Tobias Boege wrote: On Thu, 20 Feb 2020, ToddAndMargo via perl6-users wrote: On Fri, 21 Feb 2020 at 13:31, ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: $ perl6 -e 'say sqrt(2).base-repeating();' No such method 'base-repeating' for invocant

Re: irrational nubmer?

2020-02-26 Thread Todd Chester via perl6-users
On 2020-02-23 03:07, Shlomi Fish wrote: Hi, just for the record - I was not talking about Raku, just about a hypothetical language with CAS-like capabilities (see https://en.wikipedia.org/wiki/Computer_algebra_system ) that would be able to do it. I was just using Raku-like syntax for