Please tell me this is something stupid. Its driving me mad :(
use strict;
use lib '/home/linkssql/public_html/cgi-bin/admin';
use Links qw/$IN $DB $CFG/;
use CGI::Carp qw(fatalsToBrowser);
Links::init('/home/linkssql/public_html/cgi-bin/admin');
my $data;
open(GRAB, "NET_data.txt") || die "Error reading NET_data.txt. Reason: $!";
while (<GRAB>) {
my $_hash;
my @cut = split /\t/, $_;
$_hash->{Title} = $cut[0];
print $cut[0] . "\n";
#$DB->table('Links')->add( $_hash ) or die $GT::SQL::error
}
close(GRAB);
... when running, all it does is give me a blank return;
jailshell-2.05a$
Any ideas guys and gals? This has me stumped
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Code:
#!/usr/bin/perl use strict;
use lib '/home/linkssql/public_html/cgi-bin/admin';
use Links qw/$IN $DB $CFG/;
use CGI::Carp qw(fatalsToBrowser);
Links::init('/home/linkssql/public_html/cgi-bin/admin');
my $data;
open(GRAB, "NET_data.txt") || die "Error reading NET_data.txt. Reason: $!";
while (<GRAB>) {
my $_hash;
my @cut = split /\t/, $_;
$_hash->{Title} = $cut[0];
print $cut[0] . "\n";
#$DB->table('Links')->add( $_hash ) or die $GT::SQL::error
}
close(GRAB);
... when running, all it does is give me a blank return;
Quote:
jailshell-2.05a$ perl xml_import.cgi jailshell-2.05a$
Any ideas guys and gals? This has me stumped
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates

