Re: I need m/ help

2019-01-14 Thread Brad Gilbert
That is only because the special coding rules for Roman numerals weren't added. It still is a wrong way to think about Nl. On Mon, Jan 14, 2019 at 12:59 PM JJ Merelo wrote: > > > > El lun., 14 ene. 2019 a las 18:41, Brad Gilbert () > escribió: >> >> Nl is not “non-arabic numbers” and it is not

Re: I need m/ help

2019-01-14 Thread JJ Merelo
El lun., 14 ene. 2019 a las 18:41, Brad Gilbert () escribió: > Nl is not “*non-arabic numbers*” and it is not “*numbers that have a > value by themselves*”. > While both seem like correct statements, they are the wrong way to think > about the Nl category. > If either were entirely correct then

Re: I need m/ help

2019-01-14 Thread Brad Gilbert
Nl is not “*non-arabic numbers*” and it is not “*numbers that have a value by themselves*”. While both seem like correct statements, they are the wrong way to think about the Nl category. If either were entirely correct then there wouldn't be a need for No (Number other). *Nl (Number letter)* is

Re: I need m/ help

2019-01-13 Thread JJ Merelo
I would say they are numbers that have a value by themselves, but can't be collated to other numbers to form bigger numbers, that is, they are not digits and they don't have a positional value. El dom., 13 ene. 2019 a las 20:13, Timo Paulssen () escribió: > There ought to be some documentation

Re: I need m/ help

2019-01-13 Thread ToddAndMargo via perl6-users
On 1/13/19 2:04 PM, Brad Gilbert wrote: <:Nl> matches a Number that is letter-like Hi Brad and Timo, Now I understand. It is for non-Arabic numbers such as Roman numerals. Thank you! -T

Re: I need m/ help

2019-01-13 Thread Brad Gilbert
<:Nl> matches a Number that is letter-like I mean obviously `Ⅿ` (ROMAN NUMERAL ONE THOUSAND) looks like a letter. There is also <:Nd> for Number digit, and <:No> for other Numbers If you want to find out the general category of a character you can call `.uniprop`. say "1".uniprop; # Nd #

Re: I need m/ help

2019-01-13 Thread Timo Paulssen
There ought to be some documentation on the unicode website or maybe the wikipedia article has some explanation. Other than that, here's a list of all unicode characters that match <:Nl>: perl6 -e 'for ^0x10 { say "$_: $(chr($_)) $(uniname($_))" if chr($_) ~~ /<:Nl>/ }' 5870: ᛮ RUNIC ARLAUG

Re: I need m/ help

2019-01-13 Thread ToddAndMargo via perl6-users
On 1/12/19 3:04 PM, Timo Paulssen wrote: On 12/01/2019 23:40, ToddAndMargo via perl6-users wrote: But this does not.  What is wrong with (<:N>**2)  ? $ perl6 -e 'my Str $Date=DateTime.now.Str; $Date~~m/ (<:N>**4) "-" (<:N>**2) "-" (<:Nl>**2) "T" .* /; print "$Date\n\t$0  $1  $2\n"' Use of Nil

Re: I need m/ help

2019-01-13 Thread ToddAndMargo via perl6-users
On 1/12/19 3:04 PM, Timo Paulssen wrote: On 12/01/2019 23:40, ToddAndMargo via perl6-users wrote: But this does not.  What is wrong with (<:N>**2)  ? $ perl6 -e 'my Str $Date=DateTime.now.Str; $Date~~m/ (<:N>**4) "-" (<:N>**2) "-" (<:Nl>**2) "T" .* /; print "$Date\n\t$0  $1  $2\n"' Use of Nil

Re: I need m/ help

2019-01-12 Thread Timo Paulssen
On 12/01/2019 23:40, ToddAndMargo via perl6-users wrote: > But this does not.  What is wrong with (<:N>**2)  ? > > $ perl6 -e 'my Str $Date=DateTime.now.Str; $Date~~m/ (<:N>**4) "-" > (<:N>**2) "-" (<:Nl>**2) "T" .* /; print "$Date\n\t$0  $1  $2\n"' > Use of Nil in string context >   in block at

I need m/ help

2019-01-12 Thread ToddAndMargo via perl6-users
Hi All, This works: $ p6 'my $x="2018-09-15"; $x~~s/ (<:N>+) "-" (<:N>+) "-" (<:N>+) /$0.$1.$2/; say $x;' 2018.09.15 And this does too: $ perl6 -e 'my Str $Date=DateTime.now.Str; $Date~~m/ (<:N>+) "-" (<:N>+) "-" (<:N>+) "T" .* /; print "$Date\n\t$0 $1 $2\n"'

Re: I need -M help

2018-09-14 Thread Todd Chester
> On 14/09/2018 12:52, Todd Chester wrote: >> Hi All, >> >> With a one liner, how to I load a module that resides in the >> current directory? On 09/14/2018 03:58 AM, Timo Paulssen wrote: The equivalent of "use lib 'blah'" on the commandline is "-I blah", just like "-M bloop" is the equivalent

Re: I need -M help

2018-09-14 Thread Timo Paulssen
The equivalent of "use lib 'blah'" on the commandline is "-I blah", just like "-M bloop" is the equivalent of "use 'bloop'" in code. HTH   - Timo On 14/09/2018 12:52, Todd Chester wrote: > Hi All, > > With a one liner, how to I load a module that resides in the > current directory? > > $ ls

I need -M help

2018-09-14 Thread Todd Chester
Hi All, With a one liner, how to I load a module that resides in the current directory? $ ls PrintColors.pm6 PrintColors.pm6 $ perl6 -MPrintColors -e 'PrintRed "Hi";' ===SORRY!=== Could not find PrintColors at line 1 in: /home/tony/.perl6 /opt/rakudo-pkg/share/perl6/site