# Assuming you don't have subs called POWER and/or NODE. no strict; $run{POWER-NODE} = yes; # equals: $run{ 'POWER' - 'NODE' } = 'yes'; # equals: $run{ 0 - 0 } = 'yes'; # and thus: $run{0} = 'yes';