using substr... is this efficient

2004-02-20 Thread Larry Sandwick
/\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

RE: Parsing problem

2003-12-12 Thread Larry Sandwick
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

Parsing problem

2003-12-11 Thread Larry Sandwick
|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

RE: DBI MYSQL

2003-11-13 Thread Larry Sandwick
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

DBI MYSQL

2003-11-12 Thread Larry Sandwick
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

Hashes

2003-09-08 Thread Larry Sandwick
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

Do not understand Hashes !

2003-09-05 Thread Larry Sandwick
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

Install a Module ???

2003-01-23 Thread Larry Sandwick
quot; . Is there a certain directory is should be in ? Larry Sandwick Sarreid, Ltd. Network Administrator (252) 291-1414 x223

read file in from bottom instead of top

2003-01-13 Thread Larry Sandwick
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, "

if statement not validating properly

2002-11-27 Thread Larry Sandwick
&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;

RE: Connecting to a drive

2002-11-04 Thread Larry Sandwick
] 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

Connecting to a drive

2002-11-04 Thread Larry Sandwick
. 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!