Documentation for method child

Documentation for method child, assembled from the following types:

class IO::Path

From IO::Path

(IO::Path) method child

method child(IO::Path:D: $childname --> IO::Path)

Appends $childname to the end of the path, adding path separators where needed and returns the result as a new IO::Path.

my $io = IO::Path.new"/bin" );
say $io.child('netstat');                # OUTPUT: «"/bin/netstat".IO␤»