http://www.perlmonks.org?node_id=168715

redemption has asked for the wisdom of the Perl Monks concerning the following question:

ok another question, this one even more newbie-ish... i took crazyinsomniac's advice and checked out the perlfaq but i couldn't find the answer... i also checked out the function listing though and it turned out the index() function but more on that later...

now what i actually want to do is to check if a particular string contains this substring at this particular position... well the index() function looks like the strpos() function in PHP (yes i'm a PHP'er :P) but i'm thinking it wouldn't really help here since i wanted to know if the substing existed only at that particular position (positions actually)... can anyone tell me how i can do this? a regexp? or is there a built-in function that would be more efficient?

thanks in advance!