http://www.perlmonks.org?node_id=787476


in reply to FOREACH Variables

Also,
if ($alarms = "off") { #... }
should be:
if ($alarms eq "off") { # ... }

Replies are listed 'Best First'.
Re^2: FOREACH Variables
by GrandFather (Saint) on Aug 11, 2009 at 03:27 UTC

    which the OP would have caught with use warnings of course.


    True laziness is hard work