Home : Products : Links 2.0 : Discussions :

Products: Links 2.0: Discussions: Re: [Bmxer] how to reorganise links.db: Edit Log

Here is the list of edits for this post
Re: [Bmxer] how to reorganise links.db
Shall I save you the trouble :)

my $i;
my @line;

open F, "</path/to/links.db" or die $!;
open O, ">/path/to/links.db.new" or die $!;
while (<F>) {
@line = split /\|/;
shift @line;
print O "$i|" . join("|", @line) . "\n";
close O;
close F;

open L, ">/path/to/linkid.txt" or die $!;
print L $i;
close L;

..that isn't tested but has a 75% chance of working Angelic

Last edited by:

PaulW: Nov 24, 2001, 9:21 AM

Edit Log: