View Single Post
Old 2006-10-12, 08:59 AM   #5
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
how about the index function?

Code:
#!/usr/bin/perl

$string1 = "asdf asdf foofumbar asdf asdf";
$string2 = "asdf asdf foo.*bar asdf asdf";
$find = "foo.*bar";

print "string1: " . index($string1,$find) . "\n";
print "string2: " . index($string2,$find) . "\n";
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote