Re: overwrite?

2017-09-25 Thread ToddAndMargo
On 09/25/2017 09:42 AM, Parrot Raiser wrote: Have you considered simply "touch"ing the file? That updates the timestamp. yes. The way I actually did it forced me to (keep) learn(ing) how to write and read to files. A lot of the things I do, I do the hard way so that I am forced to learn. I

Re: Need a second pair of eyes

2017-09-25 Thread Brandon Allbery
On Mon, Sep 25, 2017 at 10:49 PM, ToddAndMargo wrote: > There is another operating system other than Linux? I > had heard rumors of that: it is slow, expensive, crashes > all the time. But I thought is was only a story to frighten > little children and young programmers.

Re: Need a second pair of eyes

2017-09-25 Thread ToddAndMargo
O> On Mon, Sep 25, 2017 at 10:19 AM, Brandon Allbery > wrote: On Mon, Sep 25, 2017 at 3:09 AM, Julien Simonet > wrote: I think your problem is coming from a (") missing at

Re: Need a second pair of eyes

2017-09-25 Thread ToddAndMargo
On 09/25/2017 06:39 AM, Timo Paulssen wrote: Second itteration: #!/usr/bin/env perl6 say "Full file name <$?FILE>"; my $IAm; my $IAmFrom; $?FILE ~~ m|(.*\/)(.*)|; $IAmFrom = $0; $IAm = $1; say "IAm    <$IAm>"; say "IAmFrom    <$IAmFrom>"; Please don't use string

Re: Need a second pair of eyes

2017-09-25 Thread ToddAndMargo
On 09/25/2017 12:51 PM, Parrot Raiser wrote: ToddAndMargo might save some time by asking "Is this a problem someone else might have solved, and if so, how?" before plunging ahead and coding. From this and previous postings, it looks as though the answer might frequently start with "Yes", and

Re: Need a second pair of eyes

2017-09-25 Thread Brandon Allbery
On Mon, Sep 25, 2017 at 10:23 PM, ToddAndMargo wrote: > On 09/25/2017 07:25 AM, Brandon Allbery wrote: > >> So as to make this not entirely content-free: I would suggest that the >> string language note the line on which it sees a bare newline, and if it >> subsequently

Re: Need a second pair of eyes

2017-09-25 Thread ToddAndMargo
On 09/25/2017 07:25 AM, Brandon Allbery wrote: So as to make this not entirely content-free: I would suggest that the string language note the line on which it sees a bare newline, and if it subsequently hits a syntax error while still parsing that string it could output something like perl

[perl #132162] [LTA] error of trying to assign to read-only $/ should offer a solution

2017-09-25 Thread via RT
# New Ticket Created by Zoffix Znet # Please include the string: [perl #132162] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132162 > It's a pretty common error that a user tries to execute a regex inside of an Actions

[perl #132157] [REGRESSION] Should not be able to add attributes in augment

2017-09-25 Thread via RT
# New Ticket Created by Elizabeth Mattijsen # Please include the string: [perl #132157] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132157 > jnthn: another issue I just realized: can you replace a method in an

Re: Need a second pair of eyes

2017-09-25 Thread Parrot Raiser
ToddAndMargo might save some time by asking "Is this a problem someone else might have solved, and if so, how?" before plunging ahead and coding. From this and previous postings, it looks as though the answer might frequently start with "Yes", and would save a lot of redundant effort.

Re: overwrite?

2017-09-25 Thread Parrot Raiser
Have you considered simply "touch"ing the file? That updates the timestamp.

Re: [perl #132156] [LTA] Suggest polymod for bases > 36 (9123607.base(37))

2017-09-25 Thread Brandon Allbery via RT
On Mon, Sep 25, 2017 at 10:53 AM, Aleks-Daniel Jakimenko-Aleksejev via RT < perl6-bugs-follo...@perl.org> wrote: > * add a named arg for the alphabet, so that the user can provide any > character > set he wants > I'm in favor of the original suggestion: point the user to polymod. One way that is

Re: [perl #132156] [LTA] Suggest polymod for bases > 36 (9123607.base(37))

2017-09-25 Thread Brandon Allbery
On Mon, Sep 25, 2017 at 10:53 AM, Aleks-Daniel Jakimenko-Aleksejev via RT < perl6-bugs-follo...@perl.org> wrote: > * add a named arg for the alphabet, so that the user can provide any > character > set he wants > I'm in favor of the original suggestion: point the user to polymod. One way that is

[perl #132156] [LTA] Suggest polymod for bases > 36 (9123607.base(37))

2017-09-25 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
:S let's please not. See also this discussion: https://irclog.perlgeek.de/perl6/2017-09-25#i_15211785 I'm strongly against making .base return garbage for bases >36. Polymod returns a list of integers, .base returns a *string* with the number using some alphabet. I don't understand why we want to

Re: Need a second pair of eyes

2017-09-25 Thread Brandon Allbery
So as to make this not entirely content-free: I would suggest that the string language note the line on which it sees a bare newline, and if it subsequently hits a syntax error while still parsing that string it could output something like perl 5's "Possible runaway multi-line string starting on

Re: Need a second pair of eyes

2017-09-25 Thread Brandon Allbery
On Mon, Sep 25, 2017 at 3:09 AM, Julien Simonet wrote: > I think your problem is coming from a (") missing at line 3. > At the same line, the semicolon (;) is misplaced : it should be at the end > if line. > It took older perl over a decade to come up with better error

Re: Need a second pair of eyes

2017-09-25 Thread Timo Paulssen
> Second itteration: > > > #!/usr/bin/env perl6 > > say "Full file name <$?FILE>"; > > my $IAm; > my $IAmFrom; > > $?FILE ~~ m|(.*\/)(.*)|; > $IAmFrom = $0; > $IAm = $1; > say "IAm    <$IAm>"; > say "IAmFrom    <$IAmFrom>"; > Please don't use string functions on paths; doing it

[perl #132156] [LTA] Suggest polymod for bases > 36 (9123607.base(37))

2017-09-25 Thread Tom Browder via RT
On Mon, 25 Sep 2017 02:01:55 -0700, elizabeth wrote: > > > On 25 Sep 2017, at 08:21, Aleks-Daniel Jakimenko-Aleksejev (via RT) > > wrote: > > > > # New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev > > # Please include the string: [perl #132156] > > # in the

Re: [perl #132156] [LTA] Suggest polymod for bases > 36 (9123607.base(37))

2017-09-25 Thread Elizabeth Mattijsen via RT
> On 25 Sep 2017, at 08:21, Aleks-Daniel Jakimenko-Aleksejev (via RT) > wrote: > > # New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev > # Please include the string: [perl #132156] > # in the subject line of all future correspondence about this issue. > #

Re: [perl #132156] [LTA] Suggest polymod for bases > 36 (9123607.base(37))

2017-09-25 Thread Elizabeth Mattijsen
> On 25 Sep 2017, at 08:21, Aleks-Daniel Jakimenko-Aleksejev (via RT) > wrote: > > # New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev > # Please include the string: [perl #132156] > # in the subject line of all future correspondence about this issue. > #

Re: Need a second pair of eyes

2017-09-25 Thread ToddAndMargo
On 09/25/2017 12:22 AM, ToddAndMargo wrote: On 09/25/2017 12:14 AM, ToddAndMargo wrote: Le 25 septembre 2017 08:55:59 GMT+02:00, ToddAndMargo a écrit : 1: #!/usr/bin/env perl6 2: 3: say "Full file name <$?FILE;> 4: 5: my $IAmFrom; 6:

Re: Need a second pair of eyes

2017-09-25 Thread ToddAndMargo
On 09/25/2017 12:14 AM, ToddAndMargo wrote: Le 25 septembre 2017 08:55:59 GMT+02:00, ToddAndMargo a écrit : 1: #!/usr/bin/env perl6 2: 3: say "Full file name <$?FILE;> 4: 5: my $IAmFrom; 6: $IAmFrom = $?FILE; 7: $IAmFrom ~~ \.*/||;

Re: Need a second pair of eyes

2017-09-25 Thread ToddAndMargo
Le 25 septembre 2017 08:55:59 GMT+02:00, ToddAndMargo a écrit : 1: #!/usr/bin/env perl6 2: 3: say "Full file name <$?FILE;> 4: 5: my $IAmFrom; 6: $IAmFrom = $?FILE; 7: $IAmFrom ~~ \.*/||; 8: say "IAmFrom <$IAmFrom>"; $

Re: Need a second pair of eyes

2017-09-25 Thread Julien Simonet
Hello, I think your problem is coming from a (") missing at line 3. At the same line, the semicolon (;) is misplaced : it should be at the end if line. I hope I helped :) Le 25 septembre 2017 08:55:59 GMT+02:00, ToddAndMargo a écrit : > >1: #!/usr/bin/env perl6 >2:

Re: overwrite?

2017-09-25 Thread ToddAndMargo
On 09/24/2017 11:23 PM, ToddAndMargo wrote: write you t ^^ out

Re: overwrite?

2017-09-25 Thread ToddAndMargo
On 09/24/2017 10:57 PM, Brandon Allbery wrote: On Mon, Sep 25, 2017 at 1:41 AM, ToddAndMargo > wrote: I suppose I should say at this point that the purpose of the file is to be a single line with the date the program was last run

[perl #132156] [LTA] Suggest polymod for bases > 36 (9123607.base(37))

2017-09-25 Thread via RT
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev # Please include the string: [perl #132156] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132156 > Code: say 9123607.base(37) Result: base argument to base out of