Help for this page

Select Code to Download


  1. or download this
    Use of implicit split to @_ is deprecated at ./tie-listkeyshash-test.p
    +l line 31.
    Use of implicit split to @_ is deprecated at ./tie-listkeyshash-test.p
    +l line 32.
    
  2. or download this
    my @paths = (
                 "C:\\foo\\bar",
    ...
    @paths = sort { scalar (split (/\\/ , $b)) <=>
                    scalar (split (/\\/ , $a))     } @paths;
    print "paths",  Dumper(\@paths);
    
  3. or download this
    sub dir_component_count($) {
        my $path = shift;
    ...
    
    @paths = sort { dir_component_count($b) <=>
                    dir_component_count($a)     } @paths;