12.7. More UNIX commands implemented in modules

Table 12-2. UNIX command in Modules

ModuleUsageComment
Cwd$dir = cwd;current working directory
File::Copycopy "oldfile", "newfile"; 
 move "oldfile", "newfile";this works between file systems as well
File::Basenamebasename "/a/b/c/file.pl";file.pl
 dirname "/a/b/c/file.pl";/a/b/c
File::Pathmkpath("a/b/c") 
 rmtree("/") 
File::Find  
File::Find::Rule  

If you are interested in on-site trainings by the author, please contact me directly.

Online courses: