|
NAMEPath::Abstract::Underload - Path::Abstract without stringification overloadingVERSIONversion 0.096SYNOPSISuse Path::Abstract::Underload; my $path = Path::Abstract::Underload->new("/apple/banana"); # $parent is "/apple" my $parent = $path->parent; # $cherry is "/apple/banana/cherry.txt" my $cherry = $path->child("cherry.txt"); DESCRIPTIONThis is a version of Path::Abstract without the magic "use overload ..." stringification.Unfortunately, without overloading, you can't do this: my $path = Path::Abstract::Underload->new("/a/path/to/somewhere"); print "$path\n"; # Will print out something like "Path::Abstract::Underload=SCALAR(0xdffaa0)\n" You'll have to do this instead: print $path->get, "\n"; Will print out "/a/path/to/somewhere\n" # Note, you can also use $path->stringify or $path->path # You could also do this (but it's safer to do one of the above): print $$path, "\n"; Or, just use Path::Abstract DOCUMENTATIONSee Path::Abstract for documentation & usageAUTHORRobert Krimen <robertkrimen@gmail.com> COPYRIGHT AND LICENSEThis software is copyright (c) 2010 by Robert Krimen.This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Visit the GSP FreeBSD Man Page Interface. |