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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access