Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save dogbert17/18381bf2024f59e38ed10af8914ee1c3 to your computer and use it in GitHub Desktop.
Trying to document methods 'IO' and 'SPEC' in IO::Path
=head2 method IO
method IO(IO::Path:D: --> IO::Path)
Returns the invocant.
=head2 method SPEC
method SPEC(IO::Path:D: --> IO::Spec)
Returns the L<IO::Spec|/type/IO::Spec> object that was (implicitly) specified at object
creation time.
my $io = IO::Path.new("/bin/bash");
say $io.SPEC; # (Unix)
say $IO.SPEC.dir-sep; # /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment