Help language development. Donate to The Perl Foundation

Path::Through cpan:HYTHM last updated on 2019-06-10

Path-Through-0.0.1/

Build Status

NAME

Path::Through - Provides append, prepend, pop and shift multis to IO::Path (Linux only)

SYNOPSIS

use Path::Through;

my $path = '/b'.IO;
say $path;                     # "/b".IO

$path = append $path,'c/d';
say $path;                     # "/b/c/d".IO

$path = $path.&prepend: 'a';
say $path;                     # "a/b/c/d".IO

$path = $path.&pop: :2parts;
say $path;                     # "a/b".IO

$path = $path.&shift;
say $path;                     # "b".IO

AUTHOR

Haytham Elganiny [email protected]

COPYRIGHT AND LICENSE

Copyright 2019 Haytham Elganiny

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.