Richard's Perl Step 10
Files and Directories



- I used "Sams Teach Yourself Perl in 24 Hours" - 3rd Edition as a reference for this page
- Run in windows DOS prompt
perl thisprogram.pl

perl c:\......\thisprogram.pl

 

Examples following Perl 24 hours book, Hour 10:

eg021.pl (text only) - read files in a directory

eg022.pl (text only) - print files in a directory and open files

eg023.pl (text only) - glob, pattern in file name

eg024.pl (text only) - current directory, change directory, create/delete directory

eg025.pl (text only) - delete files, rename files