By Alvin Alexander. Last updated: June 28, 2016
This image comes from this Perl.org web page, and shows the Perl “file test” characters. As I show on this page, an if
file test looks like this in Perl:
if (-B $currFile) { # do something if the file is binary ... }
In a related note, here’s a link to a page that shows the Perl if/then/elsif/else syntax.