Main Navigation


Perl for System Administration

Learn Perl Now!
And get a job doing Perl.

Perl can be used to perform or automate system administration tasks on all platforms on which it is available. Some UNIX beginners who learn Perl, use it at first where shell scripts may be more appropriate. This use is still OK, because Perl can be a good alternative for them.

Besides the core language, those who wish to use Perl for System Administration should focus on the perlfunc document (which covers the various functions available inside Perl), and on its regular expressions capabilities (which are handier than what shell scripts offer).


Useful modules for files and directories handling are:

Directory Traversal

The built-in module for traversing a directory tree in Perl is File::Find, but it has some severe limitations in interface and use. Some better alternatives are: