i'm using a FOR loop, and in it-it opens a file, and writes the input out, only it will only do it once. why is this?
thanks for your help, i'm sorry I've been posting so much, but i seen to be having a lot of problems with this forum, I've gotten probably 10 hours of sleep this week, so i'm not sure if its just because i don't know how to do it. or that i'm just tired.
thank you sooo much for your time, i would still be try'n to figure out my first question still if it were not for all of you.
if you want to see where all your code is going check here:
Code:
for ($i = 0; $i <= $#topic_posts; $i++){
if ($topic_posts[$i] =~ /0ISTARTI0/){
$Readusername = $topic_posts[$i + 2];
$post_date = $topic_posts[$i + 1];
$post = $topic_posts[$i + 3];
chomp($Readusername);
print getprofile();
}
}
sub getprofile {
open (DATA, "profiles/$Readusername.pro");
$username1 = <DATA>;
$username11 = <DATA>;
$username12 = <DATA>;
$username13 = <DATA>;
$username14 = <DATA>;
$username15 = <DATA>;
$username16 = <DATA>;
$username17 = <DATA>;
$username18 = <DATA>;
$username19 = <DATA>;
$username2 = <DATA>;
$username21 = <DATA>;
$username22 = <DATA>;
$username23 = <DATA>;
$username24 = <DATA>;
$username25 = <DATA>;
$username26 = <DATA>;
$username27 = <DATA>;
$username28 = <DATA>;
$username29 = <DATA>;
$username3 = <DATA>;
$username31 = <DATA>;
$username32 = <DATA>;
$username32 = <DATA>;
$username33 = <DATA>;
@username34 = <DATA>;
close (DATA);
if ($username13 eq ""){
$username13 = "[URL unfurl="true"]http://www.mourningsunshine.com/picts/Face.jpg";[/URL]
}
$username32 = "$username32 jhj";
chomp($username11);
chomp($username13);
print <<END;
## print HTML with var's in it.
END
$return;
}
thanks for your help, i'm sorry I've been posting so much, but i seen to be having a lot of problems with this forum, I've gotten probably 10 hours of sleep this week, so i'm not sure if its just because i don't know how to do it. or that i'm just tired.
thank you sooo much for your time, i would still be try'n to figure out my first question still if it were not for all of you.
if you want to see where all your code is going check here: