[ create a new paste ] login | about

Link: http://codepad.org/8VVO4qu7    [ raw code | output | fork ]

Perl, pasted on Mar 20:
1
2
3
use File::Basename;
print basename("/hello/foo.txt");
print dirname("/hello/foo.txt");


Output:
1
foo.txt/hello


Create a new paste based on this one


Comments: