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 >