in reply to
Can't use an undefined value as a symbol reference
Hi,
Off hand
    if ($it == "4") {
does not look right, you might like to lookup eq and ==.
J.C.
Comment on
Re: Can't use an undefined value as a symbol reference
In Section
Seekers of Perl Wisdom