in reply to How to read contents of directory into an array?
This module is also available for ActiveState Perl as well, by using the PPM.#!/usr/bin/perl -w use strict; use File::Slurp; my $DIR="directory"; my @Files=read_dir($DIR); my $ln=@Files; for(my $x=0;$x<$ln;$x++){ print"File: $Files[$x]\n"; }
|
|---|