Hi,
i'm relativly new to Perl and am having trouble getting a simple match to work. I am setting up a site search for a website and my script takes in a searchword and uses it in an exact matching statement with the other html pages on the site. i am loading each HTML page into a variable like this "$content = <INPUT>;" and then matching like this...
"if($content =~ m/^$searchword$/)"
($searchword is the variable where the users search is stored)
This is not working and i don't know why??
All i want it to do is if a user searches for "page", they do not get matches like "pa" or "pag". Only the exact string.
Any help would be greatly appreciated.
Thanks.
Thanks guys...problem solved.