in reply to Re^2: subroutine is confusing
in thread subroutine is confusing
So? Copy it into a new file, initialize the variables with test values, and run that. No big deal.
BTW you don't need <readmore>-tags around single lines. No readmore needed for post with less than, let's say 30 lines.
In Section
Seekers of Perl Wisdom