in reply to Re: Loops and variable usage
in thread Loops and variable usage

Sorry, the loop is on upper level I tried to make it simpler. I have tried different combinations with my and none worked. for example $a is always 'p' even if the $_[0] was '2'. the loop is feeding the subroutine the proper values.