On 08/14/2018 06:33 PM, yary wrote:
"so" coerces to True or False. "say /c/" would output the match object
"say so /c/" says True. Depends on what you want to see.
" $x ?? $y !! $z" is a shortcut - "if $x use value of $y else use value
of $z" and ought to be used for the final value.
You may
"so" coerces to True or False. "say /c/" would output the match object "say
so /c/" says True. Depends on what you want to see.
" $x ?? $y !! $z" is a shortcut - "if $x use value of $y else use value of
$z" and ought to be used for the final value.
You may know it in perl5 as "$result = $x ? $y :
Liz,
I'm a "Systems" person, so I'm checking hosts/IPs/networks/users/groups/etc.
frequently enough to benefit from your project.
My wish is that someone will someday do the heavy lifting for getnameinfo
(http://pubs.opengroup.org/onlinepubs/9699919799/functions/getnameinfo.html),
which gave m
Thank you. Please let me know if you miss anything and/or find any problems.
For myself, I’ve hardly had any use for these modules so they’re probably
undertested.
Liz
> On 14 Aug 2018, at 22:15, Mark Devine wrote:
>
> Wow. Glad I asked…
>
> Thank you Elizabeth Mattijsen! We’ll benefit
Wow. Glad I asked…
Thank you Elizabeth Mattijsen! We’ll benefit greatly from your industrious
work.
Mark
From: JJ Merelo
Sent: Tuesday, August 14, 2018 17:01
To: Mark Devine ; perl6-users
Subject: Re: Perl6 POSIX IEEE Std 1003.1
Many of them are already in the ecosystem as part of lizmat's
Many of them are already in the ecosystem as part of lizmat's Buttefly
project of porting Perl 5 CPAN modules to Perl 6. That If I remember
correctly, the ones you mention are one of the few that are missing, but
you can find most of them here: https://modules.perl6.org/search/?q=p5
Cheers
El ma
Perl6 Users,
The POSIX module in the ecosystem (https://github.com/cspencer/perl6-posix)
implements a few commonly used subs from POSIX IEEE Std 1003.1 in a single
file, which I found useful. I wanted to use more of these so I coded a few
simple subroutines with NativeCall for my own use. The
On 08/14/2018 08:29 AM, yary wrote:
Or, store the string in $_, and take advantage of less to type-
perl6 -e '$_="abc"; say so /z/; say so /b/; s/c/defg/ ?? .say !! say
"Failed!"'
-y
Thank you!
Well I can see it working, but what does
"so"
"??"
".say"
"!!"
do?
My actual c
Or, store the string in $_, and take advantage of less to type-
perl6 -e '$_="abc"; say so /z/; say so /b/; s/c/defg/ ?? .say !! say
"Failed!"'
-y
On Tue, Aug 14, 2018 at 4:17 AM, ToddAndMargo wrote:
> > On 14/08/18 13:08, ToddAndMargo wrote:
> >> Hi All,
> >>
> >> The Perl 5 guys have it pou
> On 14/08/18 13:08, ToddAndMargo wrote:
>> Hi All,
>>
>> The Perl 5 guys have it pounded into my head that I
>> always had to check my substitutions to see if they
>> worked if not working would crash the program.
>>
>> So in Perl 6 I have:
>>
>> $ p6 'my $x="abc"; if s/b/z/ {say "sub worked"}els
You're putting your starting string in a variable, $x, but aren't
telling the s/// operator specifically what to operate on, so it
defaults to $_, which is still at its default value.
On 14/08/18 13:08, ToddAndMargo wrote:
> Hi All,
>
> The Perl 5 guys have it pounded into my head that I
> always
Hi All,
The Perl 5 guys have it pounded into my head that I
always had to check my substitutions to see if they
worked if not working would crash the program.
So in Perl 6 I have:
$ p6 'my $x="abc"; if s/b/z/ {say "sub worked"}else{say "sub failed"};
say "$x";'
Use of uninitialized value of
On 08/14/2018 03:48 AM, Timo Paulssen wrote:
Please be aware that passing a folder with many files in it as the -I
path will cause a tremendous slowdown when loading modules, since it
goes through the whole file hierarchy starting at that path. If
/home/linuxutil is actually a typical home folder
On 08/14/2018 03:20 AM, JJ Merelo wrote:
Since I haven't done this for a long time, let me remind you the
possibility of posting, if you will, your questions _also_ in
StackOverflow. You'll (possibly) get more answers (or just different
ones), and will help spread the word about Perl 6 (which l
Please be aware that passing a folder with many files in it as the -I
path will cause a tremendous slowdown when loading modules, since it
goes through the whole file hierarchy starting at that path. If
/home/linuxutil is actually a typical home folder with dotfiles and
documents and what have you,
On 08/14/2018 03:01 AM, ToddAndMargo wrote:
Hi All,
I presume this is failing as the current directory is not
in the "lib" path:
$ perl6 -MPrintColors 'PrintBlue( "Blue\n" );'
Could not open PrintBlue( "Blue" ). Failed to stat file: no such
file or directory
This does work, but what a lot o
> On 14/08/18 12:01, ToddAndMargo wrote:
>> Hi All,
>>
>>
>> I presume this is failing as the current directory is not
>> in the "lib" path:
>>
>>
>> $ perl6 -MPrintColors 'PrintBlue( "Blue\n" );'
>> Could not open PrintBlue( "Blue" ). Failed to stat file: no such
>> file or directory
>>
>>
>> Thi
Since I haven't done this for a long time, let me remind you the
possibility of posting, if you will, your questions _also_ in
StackOverflow. You'll (possibly) get more answers (or just different ones),
and will help spread the word about Perl 6 (which lately has gone back to
the usual regime of on
You can just put -I lib on your commandline, but what's more important
is that you forgot to pass -e, so it was taking your code and
interpreting it as a filename. It's very unlikely that you have a file
called 'PrintBlue( "Blue\n" );' in the current directory, though.
perl6 -Ilib -MPrintColors -e
Hi All,
I presume this is failing as the current directory is not
in the "lib" path:
$ perl6 -MPrintColors 'PrintBlue( "Blue\n" );'
Could not open PrintBlue( "Blue" ). Failed to stat file: no such
file or directory
This does work, but what a lot of extra work:
$ perl6 -e 'use lib "/home/lin
20 matches
Mail list logo