I am processing time and need to input certain values into equations that are based on difference between UTC and Local Standard time. So, for Los Angeles the @ARGV input would be "8" and the value needed to be inserted into the nest equation would be "4" but the script won't select the appropriate value. Instead, it only selects the first value in the process despite the fact that the ARGV value is not five. What am I doing wrong?
$std_time = (@ARGV[0]);
if ($std_time = 5) {(std_time_pro = 7);}
elsif ($std_time = 6) {(std_time_pro = 6);}
elsif ($std_time = 7) {(std_time_pro = 5);}
elsif ($std_time = 8) {(std_time_pro = 4);}
elsif ($std_time = 9) {(std_time_pro = 3);}
elsif ($std_time = 10) {(std_time_pro = 2);}
$shft_number = (($std_time_pro * 3600) / 86400);