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


in reply to Running 2 scripts at once

Also, be aware that while ($on = "true") assigns. If you want to check if $on is equal to some value, you'd use == for numerical comparisons and eq for string comparisons. See perlop. So what you want is while ($on eq "true").