[perl #131766] Specifying the source address of an outgoing connection using IO::Socket::*

2017-07-18 Thread via RT
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev # Please include the string: [perl #131766] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131766 > It should be possible to specify the source address of outgoing (clie

Re: Security and modules question

2017-07-18 Thread Andrew Kirkpatrick
I suggest keeping a separate installation of perl6 if you are going to use it as root, and maintaining strict permissions by setting an appropriate umask such as 0077 in root's ~/.profile On 19 July 2017 at 10:53, Todd Chester wrote: > Hi All, > > I have been wondering about pl programs that are

Security and modules question

2017-07-18 Thread Todd Chester
Hi All, I have been wondering about pl programs that are used by the root account. I have been marking them to root and 700 to keep other out. But it is occurring to me, if the bad guys have access to my custom modules, they could insert anything they want into it and have root access. So, I h

Re: [perl #131686] [BUG] [X] @list-of-lists misbehaves with list of one list

2017-07-18 Thread Michael Schaap via RT
In my opinion, to decide whether it's a bug, you shouldn't look at the implementation of [X] and [X*], but rather at its practical use. In what cases would you use it, and what do you expect it to return when your list of lists happens to be one list? That's what I was trying to do with my exampl

Re: [perl #131686] [BUG] [X] @list-of-lists misbehaves with list of one list

2017-07-18 Thread Michael Schaap
In my opinion, to decide whether it's a bug, you shouldn't look at the implementation of [X] and [X*], but rather at its practical use. In what cases would you use it, and what do you expect it to return when your list of lists happens to be one list? That's what I was trying to do with my exampl

[perl #131686] [BUG] [X] @list-of-lists misbehaves with list of one list

2017-07-18 Thread Sam S. via RT
On Tue, 18 Jul 2017 07:45:16 -0700, joshu...@gmail.com wrote: > My thinking is that doing `[X] ((3,2),)` is kinda like doing `[X] > ((3,2),Empty)`... Assuming I understand your analogy correctly, that's exactly what's *not* happening, and is why this RT exists. See: dd [X] 3, 2; # ((3

[perl #131686] [BUG] [X] @list-of-lists misbehaves with list of one list

2017-07-18 Thread Joshua via RT
> ... it really would be great to find some way to "fix" this edge-case. I don't think anything needs to be fixed. This is along the same vein as the misguided thinking that `[Z] (3,2)` should yield `(2,3)`. I also think the comparison to [*] is invalid since it operates on number-y things, and

Re: Where's the filter command?

2017-07-18 Thread Elizabeth Mattijsen
> On 18 Jul 2017, at 11:45, Mark Carter wrote: > > > > On 18/07/2017 09:53, Brent Laabs wrote: >> Are you looking for grep()? https://docs.perl6.org/routine/grep > Ah yes. Thanks for that. > Pretty good: > > say ($schema.lines().map: &shlex-fields).grep: { .elems() > 0; } ; say $schema.lines

Re: Where's the filter command?

2017-07-18 Thread Mark Carter
On 18/07/2017 09:53, Brent Laabs wrote: Are you looking for grep()? https://docs.perl6.org/routine/grep Ah yes. Thanks for that. Pretty good: say ($schema.lines().map: &shlex-fields).grep: { .elems() > 0; } ;

Where's the filter command?

2017-07-18 Thread Mark Carter
How do I filter arrays? So far I can do mapping: say $schema.lines().map: &shlex-fields ; How about filtering? I've loked at the docs, but it seems conspicuous by its absence.