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> And .dirname is part of .parts; all Str objects as well

On Sun, May 28, 2017 at 3:54 PM Gabor Szabo <szab...@gmail.com> wrote:

> thanks.
>
> $*PROGRAM.dirname.IO.absolute;
>
> also works, but yours seem better.
>
> As a side note, dirname does not return and IO::Path object either.
>
> Gabor
>
>
> On Sat, May 27, 2017 at 6:48 PM, Lloyd Fournier <lloyd.fo...@gmail.com>
> wrote:
> > I'd use
> >
> > $*PROGRAM.absolute.IO.dirname
> >
> > I'm not sure why .absolute doesn't return an IO::Path object. Maybe
> that's
> > being addressed as part of Zoffix++'s IO work.
> >
> >
> > On Sat, May 27, 2017 at 10:07 PM Gabor Szabo <szab...@gmail.com> wrote:
> >>
> >> I came up with this:
> >>
> >> say $*PROGRAM-NAME.IO.absolute.IO.dirname;
> >>
> >> but I wonder if there is a simpler way to do it?
> >>
> >> regards
> >>     Gabor
>

Reply via email to