in reply to how do i read all the files starting with a pirticular name
The iteration operator in glob form, <list*> provides the file names.
FILENAME: while (<list*>){ open(FH, "< $_") || die; FILELINE: while (<FH>) { # <> uses filehandle here, reads lines # do stuff to lines } close( FH); }
|
|---|