Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

("<!--start-->\n") What is wrong here ?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi.
I have a little problem with my Perl script.
I want to add html in a html file
I am using this code

open (FILE,"$data");
@lines = <FILE>;
close(FILE);
open (VISITOR,&quot;>$data&quot;);
foreach $line (@lines) {
if ($line =~ /<!--start-->/) {
print VISITOR (&quot;<!--start-->\n&quot;);

When i add something it will now be added at the bottom of my page,but i want the newest add at the top.
What is wrong with this code

Thanks
Fredrik
 
if you want the newest add at the top... reprint the <!--start--> before you print the new info. adam@aauser.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top