Skip to content

Instantly share code, notes, and snippets.

@zoffixznet

zoffixznet/p2.p6 Secret

Last active January 28, 2018 08:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoffixznet/5f8e4f64b1d0ce20bd0d10dc9463cb54 to your computer and use it in GitHub Desktop.
Save zoffixznet/5f8e4f64b1d0ce20bd0d10dc9463cb54 to your computer and use it in GitHub Desktop.
my $root := $library_root.IO.absolute;
$fh.write: $sth.allrows.map(
*.subst(/^ 'file://' /, '').subst(
:g, "+", "%2b"
).&uri-unescape(:enc<utf8-c8>).IO.relative($root) ~ "\n"
).encode: 'utf8-c8'
my $root := $library_root.IO.absolute;
$fh.write: $sth.allrows.map({
uri-unescape( :enc<utf8-c8>,
.subst(/^ 'file://' /, '')
.subst(:g, "+", "%2b")
).IO.relative($root) ~ "\n"
}).encode: 'utf8-c8'
my $root := $library_root.IO.absolute;
$fh.write: $sth.allrows.map(
*.subst(/^ 'file://' /, '')
.subst(:g, "+", "%2b")\
.&uri-unescape(:enc<utf8-c8>).IO.relative($root) ~ "\n"
).encode: 'utf8-c8'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment