/\s+// ;
$page =~ s/\s+// ;
if ( $page eq "" ) { $page = "" };
print DATA "$item|$ldesc|$page|$d\n";
}
close FILE;
close DATA;
exit;
Larry Sandwick
Sarreid, Ltd.
Network/System Administrator
phone: (252) 291-1414 x223
fax : (252) 237-1592
ECTED]
Sent: Thursday, December 11, 2003 6:22 PM
To: Perl Perl
Subject: Re: Parsing problem
On Dec 11, 2003, at 12:27 PM, Larry Sandwick wrote:
> With the little amount of Perl that I know, I have come to a dilemma.
I
> do not know how to parse this file so in column 1 (24165) is the
number
|O18549|05/20/03|1801 |DESK BOX, VICTORIA|1|1|
85.50
Any suggestions would greatly be appreciated !!!
TIA
Larry Sandwick
Sarreid, Ltd.
Network/System Administrator
phone: (252) 291-1414 x223
fax : (252) 237-1592
By replacing the comma with a colon I was able connect to the database;
it now looks like I have a permission problem where the user on computer
B has no permission to reload the data on computer A.
I was also able to login at the command prompt with the same error.
My error was :
ERROR 1045: Ac
ED BY '|'
LINES TERMINATED BY '\n'
});
$sth->execute();
$sth->finish();
$dbh->disconnect();
Any help would be greatly appreciated !!!
Larry Sandwick
Sarreid, Ltd.
Network/System Administrator
phone: (252) 291-1414 x223
fax : (252) 237-1592
I want to thank everybody who helped me with my Hash problems. You
guys/gals are GREAT.
Again Thanks !!!
Larry Sandwick
Sarreid, Ltd.
Network/System Administrator
phone: (252) 291-1414 x223
fax : (252) 237-1592
ults
open(NewMasterList,">>Results.file") || die ("Could not write file $!");
close (DATA);
close (NewMasterList);
exit;
Any help would be greatly appreciated !!!
TIA
Larry Sandwick
Sarreid, Ltd.
Network/System Administrator
phone: (252) 291-1414 x223
fax : (252) 237-1592
quot; . Is there a
certain directory is should be in ?
Larry Sandwick
Sarreid, Ltd.
Network Administrator
(252) 291-1414 x223
I have tried to read a file in backwards in stead of from the top
without any success !!!
The original code looks like this .
open(DATABASE, "
&generate_form("NOT A VALID LOCATION");
exit;
}
sub generate_form # this is the default screen for a web page
for logging in
{
local($message = @_;
$ip = $ENV{REMOTE_ADDR};
print <connect("DBI:XBase:/save") || die $DBI::errstr;
]
Subject: Re: Connecting to a drive
From: "Larry Sandwick" <[EMAIL PROTECTED]>
> I am trying to write a Perl script that will replicate a directory on
> one computer to another. All of the computers are running XP. I do
> have administrative privileges.
>
> The problem
.
system "net use m: \\$node\\c\$ user:/username
password";
The error I get from the line is a syntax error.
If I map the drive manually my script works.(That's no good when you
have to do it 40 times )
Any suggestions would be appreciated
Thanks for your help!
12 matches
Mail list logo