> On Jul 11, 2021, at 1:13 AM, ToddAndMargo via perl6-users > <perl6-us...@perl.org> wrote: —snip-- > $*PROGRAM.parent is just a silly dot. —snip— Todd, That is true only when the program you are running happens to be in your current directory (as is very common, but not nearly universal, and not the case for Joe’s use case). cat > a.raku <<END say \$*PROGRAM.parent; END raku a.raku OUTPUT: ".".IO mkdir Temp_some_subdir mv -i a.raku Temp_some_subdir/ raku Temp_some_subdir/a.raku OUTPUT: "Temp_some_subdir”.IO — Hope this helps, Bruce Gray (Util of PerlMonks)
- use lib and locations in a variable Joseph Brenner
- Re: use lib and locations in a variable ToddAndMargo via perl6-users
- Re: use lib and locations in a varia... Bruce Gray
- Re: use lib and locations in a v... ToddAndMargo via perl6-users
- Re: use lib and locations in... Elizabeth Mattijsen
- Re: use lib and locatio... ToddAndMargo via perl6-users
- Re: use lib and locations in a variable Elizabeth Mattijsen
- Re: use lib and locations in a variable Joseph Brenner
- Re: use lib and locations in a variable Joseph Brenner
- Re: use lib and locations in a varia... Elizabeth Mattijsen