THANK YOU Zanardi! That cleaned up THAT problem. Though I had to add $ThisScrap = ""; before the if statment to get it to work. It no longer displays errant scrapbooks like it did....now, it only displays the last entry in the list. If you go back to the page listed above, you'll see there is only one user with a blue folder. Well, ALL users have an entry in scraps-list.file The one showing is the most recent addition. Here is the new code I used:
---------------
# Check for Scrapbook
my @scrapbook = &OpenFile("$MembersPath/scrap-list.file");
foreach $thisline(@scrapbook) {
my @scraps = split(/|!!|/, $thisline);
chomp($scraps[1]);
$ThisScrap = "";
if ($thisprofile[0] eq "$scraps[0]") {
$ThisScrap = qq(
![Check out $thisline[2]'s Prowler ScrapBook!!!]($NonCGIURL/scrap.gif)
);
}
}
------------------
Thank you so very much, it was nice to make some progress...thanks to you! Personally, I think it is that IF statement that is wrong in some way..maybe an UNLESS would be better? So far, I am getting the variable assigned, and to the right person...but it isn't doing the whole list, which is why I think the IF statement is the problem.
------------------
Tony (Vipermad) Rickard
Viper Club UBB Admin This message has been edited by Vipermad on January 06, 2001 at 09:38 AM