if($calculation =~ /v/i) #### my $resistance = ; chomp $resistance; print "Now type the voltage of the circuit.\n"; my $voltage = ; chomp $voltage; my $current = $voltage / $resistance; chomp $current; # <--------------- NOT NEEDED