So if the first letter in the title is "A", then i will print out all the records where that's true. Right now i'm not getting anything. I don't think that i'm doing the match correctly. Someone Please Help. Thanxs - Kiko################# # PRINT RESULTS # ################# while ($db->FetchRow()) { if(($row>=$min)&&($row<$max)) { my (%dbrow) = $db->DataHash(); # Change the color of the row my $bgcolor="#E6E6D7"; if ($color % 2 !=0) { $bgcolor = "#DDDDDD"; } my $title="$dbrow{'Title'}"; if ($title =~ /^$layer/) { do something... } } }
In reply to Matching the first letter in a string by Kiko
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |