|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Answer: How do I read files from a folder and place them into a list? |
| ( #252291=categorized answer: print w/ replies, xml ) | Need Help?? |
|
Q&A > arrays > How do I read files from a folder and place them into a list? contributed by ctilmes
File::Slurp offers a shortcut for the opendir/readdir/closedir
idiom:
Note that File::Slurp::read_dir automatically skips '.' and '..'.
|
|
||||||||||||||||||