Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

splitpath and catpath #1

Closed
azawawi opened this issue Oct 21, 2012 · 1 comment
Closed

splitpath and catpath #1

azawawi opened this issue Oct 21, 2012 · 1 comment

Comments

@azawawi
Copy link

azawawi commented Oct 21, 2012

splitpath and catpath should be opposites. Please See https://metacpan.org/module/File::Spec#splitpath. I am using rakudo 2012.09.

use v6;
use File::Spec;
my ($volume, $dirs, $filename) = File::Spec.splitpath('lib/Farabi.pm6');
say File::Spec.catpath($volume, $dirs, $filename);

results in the following:

Unable to coerce value for '$start' from WhateverCode to Int; no coercion method defined
  in method substr at src/gen/CORE.setting:1994
  in method catpath at lib/File/Spec/Unix.pm:113
  in method catpath at lib/File/Spec.pm:36
  in block  at test.p6:5
@FROGGS
Copy link
Owner

FROGGS commented Oct 21, 2012

Thank you for your ticket.

@FROGGS FROGGS closed this as completed Oct 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants