I'm having a dumb moment here...
I am trying to search out strings and match user input with what's stored in database.
I'm using
if($data =~ $user_input){then do something;}
It's important to note that all the "$data" strings are all numbers.
So for example, user puts in "1" and it matches "1, 10, 125..."
But the problem is if user inputs "8" it will match "800" but not "1008, 181..."
Can someone help me see what I'm missing here?
Derek