Re: learning resources for perl6 beginner
Thanks for all great books and their authors. I downloaded these two and have been reading them. https://deeptext.media/i/perl6-at-a-glance/perl6-at-a-glance-downloadable.pdf https://github.com/LaurentRosenfeld/thinkperl6/raw/master/PDF/thinkperl6.pdf regards. On Sun, Aug 25, 2019 at 2:50 AM Laurent Rosenfeld < laurent.rosenf...@googlemail.com> wrote: > Just one additional point: > > *Think Perl 6* is available in printed form (e.g. from Amazon), but is > also available for free download in PDF format: > https://greenteapress.com/wp/think-perl-6/ > > Le sam. 24 août 2019 à 20:32, Parrot Raiser <1parr...@gmail.com> a écrit : > >> Some books: >> >> "Think Perl 6" >> http://shop.oreilly.com/product/0636920065883.do >> "Learning Perl 6"http://shop.oreilly.com/product/0636920062776.do >> "Perl 6 At a Glance" https://perl6.online/perl6-at-a-glance/ (which >> Andrew did mention) >> >> On 8/24/19, William Michels via perl6-users wrote: >> > Hi Wesley, >> > >> > Andy's being modest. In addition to the official Perl6 docs at: >> > http://docs.perl6.org (as Andy suggests), Check out his many Perl6 >> > resources (including videos) at: >> > >> > https://perl6.online/ >> > https://perl6.online/contents/ >> > https://perl6.online/category/talks/ >> > >> > I'm using Andy Shitov's "Perl6 One-Liners" slides to teach myself >> > Perl6 on the command-line, as a modern replacement for sed/awk: >> > >> > https://perl6.online/2019/03/08/perl-6-one-liners-slides/ >> > >> https://perl6.online/2018/12/20/using-command-line-options-in-perl-6-one-liners/ >> > >> https://perl6.online/2018/12/24/overview-of-the-perl-6-one-liner-advent-calendar-2018/ >> > >> > Also check out David Farrell's "Perl6-One-Liners" Github repo: >> > >> > https://github.com/dnmfarrell/Perl6-One-Liners#tutorial >> > >> > Finally, take a look Naoum Hankache's "Perl6Intro" site, and >> > associated Github repo. As an added bonus, Naoum's site is available >> > in thirteen (13) languages: >> > >> > https://perl6intro.com >> > https://github.com/hankache/perl6intro >> > >> > This just scratches the surface (apologies to anyone I've overlooked), >> > >> > HTH, Bill. >> > >> > >> > >> > On Sat, Aug 24, 2019 at 4:15 AM Andrew Shitov wrote: >> >> >> >> https://perl6.online/perl6-at-a-glance/ >> >> >> >> http://docs.perl6.org >> >> >> >> >> >> On Sat, 24 Aug 2019 at 13:13, Wesley Peng wrote: >> >>> >> >>> Hello, >> >>> >> >>> I am a programmer most time writing code with c/perl 5/ruby. >> >>> >> >>> I know perl6 is coming to the world, have the interest to take a >> glance >> >>> on it. >> >>> >> >>> For beginner of perl6, can you suggest some resources including online >> >>> documentation or books to get start? >> >>> >> >>> thanks & regards >> >>> Wesley >> >> >> >> -- >> >> Andrew Shitov >> >> __ >> >> a...@shitov.ru | http://shitov.ru >> > >> >
Re: learning resources for perl6 beginner
Thank you William. That's awesome! On Sun, Aug 25, 2019 at 12:07 AM William Michels wrote: > Hi Wesley, > > Andy's being modest. In addition to the official Perl6 docs at: > http://docs.perl6.org (as Andy suggests), Check out his many Perl6 > resources (including videos) at: > > https://perl6.online/ > https://perl6.online/contents/ > https://perl6.online/category/talks/ > > I'm using Andy Shitov's "Perl6 One-Liners" slides to teach myself > Perl6 on the command-line, as a modern replacement for sed/awk: > > https://perl6.online/2019/03/08/perl-6-one-liners-slides/ > > https://perl6.online/2018/12/20/using-command-line-options-in-perl-6-one-liners/ > > https://perl6.online/2018/12/24/overview-of-the-perl-6-one-liner-advent-calendar-2018/ > > Also check out David Farrell's "Perl6-One-Liners" Github repo: > > https://github.com/dnmfarrell/Perl6-One-Liners#tutorial > > Finally, take a look Naoum Hankache's "Perl6Intro" site, and > associated Github repo. As an added bonus, Naoum's site is available > in thirteen (13) languages: > > https://perl6intro.com > https://github.com/hankache/perl6intro > > This just scratches the surface (apologies to anyone I've overlooked), > > HTH, Bill. > > > > On Sat, Aug 24, 2019 at 4:15 AM Andrew Shitov wrote: > > > > https://perl6.online/perl6-at-a-glance/ > > > > http://docs.perl6.org > > > > > > On Sat, 24 Aug 2019 at 13:13, Wesley Peng wrote: > >> > >> Hello, > >> > >> I am a programmer most time writing code with c/perl 5/ruby. > >> > >> I know perl6 is coming to the world, have the interest to take a glance > on it. > >> > >> For beginner of perl6, can you suggest some resources including online > documentation or books to get start? > >> > >> thanks & regards > >> Wesley > > > > -- > > Andrew Shitov > > __ > > a...@shitov.ru | http://shitov.ru >
p6doc issue - #2387
https://github.com/perl6/doc/issues/2387 Coke closed the issue , but for me, "p6doc build" is still broken. It looks as though whatever was "fixed in HEAD" hasn't made it into Rakudo*. Could we have details (or at least an issue number) to help implement the fix, please?
Re: learning resources for perl6 beginner
Just one additional point: *Think Perl 6* is available in printed form (e.g. from Amazon), but is also available for free download in PDF format: https://greenteapress.com/wp/think-perl-6/ Le sam. 24 août 2019 à 20:32, Parrot Raiser <1parr...@gmail.com> a écrit : > Some books: > > "Think Perl 6"http://shop.oreilly.com/product/0636920065883.do > "Learning Perl 6"http://shop.oreilly.com/product/0636920062776.do > "Perl 6 At a Glance" https://perl6.online/perl6-at-a-glance/ (which > Andrew did mention) > > On 8/24/19, William Michels via perl6-users wrote: > > Hi Wesley, > > > > Andy's being modest. In addition to the official Perl6 docs at: > > http://docs.perl6.org (as Andy suggests), Check out his many Perl6 > > resources (including videos) at: > > > > https://perl6.online/ > > https://perl6.online/contents/ > > https://perl6.online/category/talks/ > > > > I'm using Andy Shitov's "Perl6 One-Liners" slides to teach myself > > Perl6 on the command-line, as a modern replacement for sed/awk: > > > > https://perl6.online/2019/03/08/perl-6-one-liners-slides/ > > > https://perl6.online/2018/12/20/using-command-line-options-in-perl-6-one-liners/ > > > https://perl6.online/2018/12/24/overview-of-the-perl-6-one-liner-advent-calendar-2018/ > > > > Also check out David Farrell's "Perl6-One-Liners" Github repo: > > > > https://github.com/dnmfarrell/Perl6-One-Liners#tutorial > > > > Finally, take a look Naoum Hankache's "Perl6Intro" site, and > > associated Github repo. As an added bonus, Naoum's site is available > > in thirteen (13) languages: > > > > https://perl6intro.com > > https://github.com/hankache/perl6intro > > > > This just scratches the surface (apologies to anyone I've overlooked), > > > > HTH, Bill. > > > > > > > > On Sat, Aug 24, 2019 at 4:15 AM Andrew Shitov wrote: > >> > >> https://perl6.online/perl6-at-a-glance/ > >> > >> http://docs.perl6.org > >> > >> > >> On Sat, 24 Aug 2019 at 13:13, Wesley Peng wrote: > >>> > >>> Hello, > >>> > >>> I am a programmer most time writing code with c/perl 5/ruby. > >>> > >>> I know perl6 is coming to the world, have the interest to take a glance > >>> on it. > >>> > >>> For beginner of perl6, can you suggest some resources including online > >>> documentation or books to get start? > >>> > >>> thanks & regards > >>> Wesley > >> > >> -- > >> Andrew Shitov > >> __ > >> a...@shitov.ru | http://shitov.ru > > >
Re: learning resources for perl6 beginner
Some books: "Think Perl 6"http://shop.oreilly.com/product/0636920065883.do "Learning Perl 6"http://shop.oreilly.com/product/0636920062776.do "Perl 6 At a Glance" https://perl6.online/perl6-at-a-glance/ (which Andrew did mention) On 8/24/19, William Michels via perl6-users wrote: > Hi Wesley, > > Andy's being modest. In addition to the official Perl6 docs at: > http://docs.perl6.org (as Andy suggests), Check out his many Perl6 > resources (including videos) at: > > https://perl6.online/ > https://perl6.online/contents/ > https://perl6.online/category/talks/ > > I'm using Andy Shitov's "Perl6 One-Liners" slides to teach myself > Perl6 on the command-line, as a modern replacement for sed/awk: > > https://perl6.online/2019/03/08/perl-6-one-liners-slides/ > https://perl6.online/2018/12/20/using-command-line-options-in-perl-6-one-liners/ > https://perl6.online/2018/12/24/overview-of-the-perl-6-one-liner-advent-calendar-2018/ > > Also check out David Farrell's "Perl6-One-Liners" Github repo: > > https://github.com/dnmfarrell/Perl6-One-Liners#tutorial > > Finally, take a look Naoum Hankache's "Perl6Intro" site, and > associated Github repo. As an added bonus, Naoum's site is available > in thirteen (13) languages: > > https://perl6intro.com > https://github.com/hankache/perl6intro > > This just scratches the surface (apologies to anyone I've overlooked), > > HTH, Bill. > > > > On Sat, Aug 24, 2019 at 4:15 AM Andrew Shitov wrote: >> >> https://perl6.online/perl6-at-a-glance/ >> >> http://docs.perl6.org >> >> >> On Sat, 24 Aug 2019 at 13:13, Wesley Peng wrote: >>> >>> Hello, >>> >>> I am a programmer most time writing code with c/perl 5/ruby. >>> >>> I know perl6 is coming to the world, have the interest to take a glance >>> on it. >>> >>> For beginner of perl6, can you suggest some resources including online >>> documentation or books to get start? >>> >>> thanks & regards >>> Wesley >> >> -- >> Andrew Shitov >> __ >> a...@shitov.ru | http://shitov.ru >
Executing remote command via ssh
Folks, I need to execute a program in a remote machine, that takes its input from STDIN. I created a user in such remote machine, and set my program as the shell for that account (so I don't need to provide shell access). On my local node, I have this program: #!/usr/bin/perl use IPC::Open3; use POSIX; $inputfile= $ARGV[0]; open(FILE, '<', "$ARGV[0]") or die $!; $command= "ssh user\@remotehost.com"; $pid = open3('<&FILE', '>&STDOUT', '>&STDERR', $command); waitpid( $pid, 0 ); What I expect is that I pass the name of the file as arguments of this program ($ARGV[0]), and the contents of this file is fed as STDIN of the child I've spawn with open3. This should be received as STDIN of my remote program, and the results of the remote program would be printed on STDOUT. This works well. However, my program only reads the first line, and then terminates. If I do a manual test, and do ssh u...@remotehost.com, and type multiple lines of input, then things work as expected. Any clues? Thanks! -m
Re: Lookbehind assertion weirdness
Lookahead/lookbehind assertions: maybe the mnemonic "ABBA" will help? In Markdown: 'Use *A*fter for a look-*B*ehind, use *B*efore for a look-*A*head', or... 'For a look-*A*head' use *B*efore, for a look-*B*ehind" use *A*fter'. As a trivial example of the first mnemonic in practice, below are examples with html tags. Note the last two examples which differ in the use of a 'greedy' (.*) pattern vs the use of a 'frugal' (.*?) pattern, still give the same result: > my $title = 'abcdefghijklmnopqrstuvwxyz'; abcdefghijklmnopqrstuvwxyz > $title ~~ /' > .* ' >/; 「abcdefghijklmnopqrstuvwxyz」 > say ~$/ if $title ~~ /' > .* ' >/; abcdefghijklmnopqrstuvwxyz > say ~$/ if $title ~~ /' > .*? ' >/; abcdefghijklmnopqrstuvwxyz > HTH, Bill. https://docs.perl6.org/language/regexes On Fri, Aug 23, 2019 at 2:28 PM Brad Gilbert wrote: > > `after` and `before` can be confusing, but I think it would be more confusing > if it were the other way around. > > On Fri, Aug 23, 2019 at 2:15 PM Sean McAfee wrote: >> >> On Thu, Aug 22, 2019 at 6:11 PM yary wrote: >>> >>> Perl 6 is doing the right thing. The dot matches any character. In >>> this case, matching the final ':'. The next bit of the regex says the >>> cursor has to be after 1:, and indeed, after matching the ':' the >>> cursor is after '1:', so the substitution succeeds. >> >> >> My real use case, that I tried to provide a simplified example of, was to >> process some pretty-printed JSON. Less simplified this time, I wanted to >> change all "foo": "whatever" strings to "foo": "*". In Perl 5 I would have >> done: >> >> s/(?<="foo": ")[^"]+/*/; >> >> Trying to express this in Perl 6, I thought "lookbehind" would naturally >> translate to a "before" assertion: >> >> s/<-["]>+/*/; >> >> ...but that didn't work. Various other attempts led to the simplified >> example I originally provided. >> >> Long story short, it seems that a Perl 5 (?<=...) lookbehind translates to a >> Perl 6 assertion, and likewise a Perl 5 (?=...) lookahead >> translates to a Perl 6 assertion. The terminology just >> confused me due to my prior Perl 5 experience. >>
Re: learning resources for perl6 beginner
Hi Wesley, Andy's being modest. In addition to the official Perl6 docs at: http://docs.perl6.org (as Andy suggests), Check out his many Perl6 resources (including videos) at: https://perl6.online/ https://perl6.online/contents/ https://perl6.online/category/talks/ I'm using Andy Shitov's "Perl6 One-Liners" slides to teach myself Perl6 on the command-line, as a modern replacement for sed/awk: https://perl6.online/2019/03/08/perl-6-one-liners-slides/ https://perl6.online/2018/12/20/using-command-line-options-in-perl-6-one-liners/ https://perl6.online/2018/12/24/overview-of-the-perl-6-one-liner-advent-calendar-2018/ Also check out David Farrell's "Perl6-One-Liners" Github repo: https://github.com/dnmfarrell/Perl6-One-Liners#tutorial Finally, take a look Naoum Hankache's "Perl6Intro" site, and associated Github repo. As an added bonus, Naoum's site is available in thirteen (13) languages: https://perl6intro.com https://github.com/hankache/perl6intro This just scratches the surface (apologies to anyone I've overlooked), HTH, Bill. On Sat, Aug 24, 2019 at 4:15 AM Andrew Shitov wrote: > > https://perl6.online/perl6-at-a-glance/ > > http://docs.perl6.org > > > On Sat, 24 Aug 2019 at 13:13, Wesley Peng wrote: >> >> Hello, >> >> I am a programmer most time writing code with c/perl 5/ruby. >> >> I know perl6 is coming to the world, have the interest to take a glance on >> it. >> >> For beginner of perl6, can you suggest some resources including online >> documentation or books to get start? >> >> thanks & regards >> Wesley > > -- > Andrew Shitov > __ > a...@shitov.ru | http://shitov.ru
Re: learning resources for perl6 beginner
https://perl6.online/perl6-at-a-glance/ http://docs.perl6.org On Sat, 24 Aug 2019 at 13:13, Wesley Peng wrote: > Hello, > > I am a programmer most time writing code with c/perl 5/ruby. > > I know perl6 is coming to the world, have the interest to take a glance on > it. > > For beginner of perl6, can you suggest some resources including online > documentation or books to get start? > > thanks & regards > Wesley > -- Andrew Shitov __ a...@shitov.ru | http://shitov.ru
learning resources for perl6 beginner
Hello, I am a programmer most time writing code with c/perl 5/ruby. I know perl6 is coming to the world, have the interest to take a glance on it. For beginner of perl6, can you suggest some resources including online documentation or books to get start? thanks & regards Wesley