Help for this page

Select Code to Download


  1. or download this
    use File::Spec::Functions qw(catfile splitdir);
    
    ...
    
    my $path1 = catfile @pathnames;   # '/special/semantic/path/definition
    +'
    my $path2 = join '/', @pathnames; # '//special/semantic//path/definiti
    +on'