Re: Need help converting from Perl 5

2018-05-14 Thread JJ Merelo
As far as I understand it, HTTP::UserAgent is preferred over LWP::Simple. It does work to spec now, so I'm using it... El mar., 15 may. 2018 a las 8:44, ToddAndMargo () escribió: > On 05/14/2018 02:42 AM, JJ Merelo wrote: > > Maybe this will work > > > > use HTTP::UserAgent; > > > > my $ua = HTTP

Re: number of letters question

2018-05-14 Thread JJ Merelo
IN Perl 6, it's a bit more complicated. Do you want to count graphemes or codepoints? El mar., 15 may. 2018 a las 8:32, ToddAndMargo () escribió: > Hi All, > > Do we have one of those sweet functions that will > allow us to look at a string and give us back the > count of how many "letters" and/o

Re: Need help converting from Perl 5

2018-05-14 Thread ToddAndMargo
On 05/14/2018 02:42 AM, JJ Merelo wrote: Maybe this will work use HTTP::UserAgent; my $ua = HTTP::UserAgent.new; $ua.timeout = 10; my $response = $ua.get("https://ftp.mozilla.org/pub/firefox/releases/";); if $response.is-success {     say $response.content ~~ m:g{\> (\d+ \. .+?) \/}; } Hi

number of letters question

2018-05-14 Thread ToddAndMargo
Hi All, Do we have one of those sweet functions that will allow us to look at a string and give us back the count of how many "letters" and/or "numbers" are in a string? And are decimal points considered numbers or letters? Many thanks, -T

[perl #124815] Roast rakudo skip/todo test:./S32-num/fatrat.t line:191 reason: 'unknown'

2018-05-14 Thread Zoffix Znet via RT
Test was incorrect. Fixed in https://github.com/perl6/roast/commit/771a2bbeb1

[perl #124815] Roast rakudo skip/todo test:./S32-num/fatrat.t line:191 reason: 'unknown'

2018-05-14 Thread Zoffix Znet via RT
Test was incorrect. Fixed in https://github.com/perl6/roast/commit/771a2bbeb1

[perl #124814] Roast rakudo skip/todo test:./S32-num/fatrat.t line:181 reason: 'FatRat arith + type objects'

2018-05-14 Thread Zoffix Znet via RT
Re-filed with more details on the issue in https://github.com/rakudo/rakudo/issues/1830

Re: Need help converting from Perl 5

2018-05-14 Thread Shlomi Fish
Hi Todd, On Sun, 13 May 2018 22:07:59 -0700 ToddAndMargo wrote: > On 05/13/2018 09:41 PM, ToddAndMargo wrote: > > Hi All, > > > > I can't not remember what I did in Perl 5 here and > > am not having a good time converting it to Perl 6. > > > > $  perl -e 'my $A="44.rc0"; if ($A ~~ /(^[0-9,.,a,

Re: Need help converting from Perl 5

2018-05-14 Thread JJ Merelo
Maybe this will work use HTTP::UserAgent; my $ua = HTTP::UserAgent.new; $ua.timeout = 10; my $response = $ua.get("https://ftp.mozilla.org/pub/firefox/releases/";); if $response.is-success { say $response.content ~~ m:g{\> (\d+ \. .+?) \/}; } .. Please post also your question to StackOverfl

Re: Need help converting from Perl 5

2018-05-14 Thread ToddAndMargo
El lun., 14 may. 2018 a las 7:08, ToddAndMargo (>) escribió: On 05/13/2018 09:41 PM, ToddAndMargo wrote: > Hi All, > > I can't not remember what I did in Perl 5 here and > am not having a good time converting it to Perl 6. > > $ per