in reply to
checking substring for numbers
You've got a scoping problem, I think. 'my' gives you a variable local to a block, so as soon as you hit the right curly brace your $shopID goes away.
Brian
Comment on
Re: checking substring for numbers
In Section
Seekers of Perl Wisdom