#!/usr/local/bin/perl use strict; use warnings; my $shell = ""; my $shall = 2; my %count = ($shell, $shall); my $result = $count{ $shell || "bin/sh" }++; print "$result\n";