Perl in FreeBSD
About one-tenth of the programs that make up FreeBSD's core installation are actually Perl scripts. The rest are generally compiled binaries, built from source code written in C, C++, or a number of other popular languages. These binaries cannot be read by a human or easily decompiled back to source form. Perl code, on the other hand, does not need to be compiled. It exists as plain text, easily readable and editable, and is run with the help of the Perl interpreter, /usr/bin/perl.
We saw in Chapter 13, “Shell Programming,” how to write scripts using the shell interpreter /bin/sh, by specifying the name of the interpreter on the first line of the script. Perl scripts work the same way. The difference is that while shell scripts ...
Get FreeBSD® Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.