Reading https://docs.perl6.org/type/IO::Path#method_child
I thought I need to use .child or .add but .add does not seem to work:
"foo/bar".IO.add("def")
No such method 'add' for invocant of type 'IO::Path'
in block at line 1
Gabor
If they are really identical, might it be an idea to use symbolic
links for 2 of them?
That would reduce the code to be stored, maintained, and transmitted,
and make it blatantly obvious if different versions are required.
On 5/28/17, Nelo Onyiah wrote:
> I presume that's
Hi,
I've just noticed that in /Applications/Rakudo/share/perl6/site/bin/ I
have 3 copies
of every script. One with a -j and one with a -m at the end just as for zef:
zef
zef-j
zef-m
The files seem to be identical.
Why are there 3 and what is their purpose?
Gabor
On 05/28/2017 12:04 PM, Elizabeth Mattijsen wrote:
On 28 May 2017, at 11:49, Marcel Timmerman wrote:
I've a question about naming a specific class. It is about the type Decimal128
which I need in BSON. For the moment I want it to hold a number and in BSON to
encode and
> On 28 May 2017, at 11:49, Marcel Timmerman wrote:
> I've a question about naming a specific class. It is about the type
> Decimal128 which I need in BSON. For the moment I want it to hold a number
> and in BSON to encode and decode it to a byte stream. Later I can add
>
Hi,
I've a question about naming a specific class. It is about the type
Decimal128 which I need in BSON. For the moment I want it to hold a
number and in BSON to encode and decode it to a byte stream. Later I can
add specific operations and other known decimal types. I am thinking of
the
Nice.
I think this would be a good addition to the docs :)
You can also write
$*PROGRAM.parent.parent.parent.parent.absolute;
but if your relative path is too short, you might end up with a bunch
of .. like this:
/Users/gabor/work/perl6maven.com/../..
Gabor
On Sun, May 28, 2017 at 9:10
After thinking about what Zoffix said, probably what you're meant to do is:
$*PROGRAM.parent.absolute
Which leaves the stringification (.absolute) until last.
On Sun, May 28, 2017 at 4:04 PM Lloyd Fournier
wrote:
> FYI:
>
> 15:57 < llfourn> Zoffix: is there any plan to
FYI:
15:57 < llfourn> Zoffix: is there any plan to make .dirname and .absolute
on IO::Path return an IO::Path?
15:58 < llfourn> (rather than a Str)
15:58 < Zoffix> llfourn: no
15:58 < Zoffix> .absolute is one of the two ways to stringify an IO::Path
(the second being .relative)
15:58 < Zoffix>