You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs do show the syntax using method 'extension' with argument '$subst', but they do not show a real use case. I suggest a good example might be:
my $txt-file = "archives.txt".IO;
say $txt-file.basename; # OUTPUT: "archives.txt"
my $pdf-file = $txt-file.extension: "pdf";
say $pdf-file.basename; # OUTPUT: "archives.pdf"