Could someone tell me how I can find, within the executing Raku script itself, the path to the script?
I am looking for the equivalent of this Perl code in Raku:
$path=abs_path($0);
Use $*PROGRAM
see: https://docs.raku.org/language/variables#index-entry-$*PROGRAM
$*PROGRAM
Contains the location (in the form of an IO::Path object) of the Raku program being executed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With