Help for this page

Select Code to Download


  1. or download this
    $PathOnly = "c:\Dir1\Dir2\Dir3";
    
    @SubDirs = split('\', $PathOnly);
    
  2. or download this
    @SubDirs = split('\\', $PathOnly);
    
  3. or download this
    @SubDirs = split("\\", $PathOnly);
    
  4. or download this
    my $SplitAt = "\\";
    my @SubDirs = split($SplitAt, $PathOnly);
    
  5. or download this
    my $SplitAt = "\\\\";
    my @SubDirs = split($SplitAt, $PathOnly);
    
  6. or download this
    my @SubDirs = split("\\\\", $PathOnly);