I was quite disappointed when I realized, that boolean variables (true and false) are not allowed in Perl. I figured out a workaround which is quite pretty useful.
use constant {
false => 0,
true => 1
};
Use it:
$myVariable = true;
if ( $myVariable == true ) {
# stuff
}