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