Help for this page

Select Code to Download


  1. or download this
    my $path = 'yourdir/yoursubdir/';    # or whatever
    my @filearray;
    while (<$path*>) {
        s/$path//;            # strip off the filepath
        push @filearray, $_;  # push the filename into the array
    }
    
  2. or download this
    while (my $file = <$path*>) {
        $file =~ s/$path//;            
        push @filearray, $file;
    }