sorry. acidentally clicked 'submit post' instead of 'preview post'.
...continued from previous post
If I delete the - character and replace it with a hyphen, the file is parsing without errors. The error message I get is
Failed to parse line: 011-00-HSCM,Hospital Services û Component...
I was using the Text::CSV module to parse a CSV file with 1000 plus records. 4 of them failed. The failed rows are
<code>
011-00-HSCM,Hospital Services – Component Manufacturing,DEFAULT,011-00,4050 Lindell Blvd,St. Louis,MO,63108,USA
011-00-HSCR,Hospital Services – Component...
icrf,
Thank you. That worked atleast on one desktop. Will it usually behave the same way? Please let me know if the command is dependant on the environment in any way.
THANKS AGAIN,
Hi,
THIS IS REALLY URGENT. HELP APPRECIATED.
I was able to install the Text-CSV module on my desktop and laptop without any problem. Right now I am working on an installation guide for my script. And when I tried to repeat the installation of CSV module on another desktop, I did not get the...
Is there a way to catch errors in a block of perl code and handle the errors per block.
I have been doing somehting like this
open(...) or die $!;
open (...) or die $!;
print $! unless (some condition);
SO right now I have script which checks for error messages on as many lines as possible. Is...
Hi,
I need to install and setup CVS Server on Windows for multiples users to be able to connect thru' LAN.
I read something like...CVS running under Windows cannot currently serve repositories to remote machines; it can be a client (connecting to remote repositories), and operate in local...
To be precise
I created another test file to use my common.pl
Here is the test file........................
.................
use strict;
require 'common.pl';
$Commons::prepLogFile();
$Commons::logMsg();
.......................
The error I get is
syntax error at test.pl line 5, near...
I worked on Perl couple of years ago. I maintained someone else's code and I never had problem modifying. Now I try to develop something on those lines and I can't even do the basics. It istoo late for me to change the technology. Can some one help me with this.
I want to move buildheader...
Hi, this is my 3rd questionf of the day.
I need to create some sub routines and make them available to other files. How do I do that.? Do I HAVE TO use modules?
What willbe the simplest way to achieve this?
I just want to put some loggingcapabilities and some common business logic into a file...
Can anyone help me with this?
I am looking for any code/modules which will parse CSV files. I came across Text::CSV pm. Bu twhen I downloaded it, the readme file conatined instructions to install/setup on UNIX platform only.
I am loking for something on Windows 2000.
Thank you,
This might be the last question.
Can you tell me what to use to set/get env. variables? I can get more details on how to use from the perl book i have, if I know what to use.
thanks,
As of now I plan on invoking it as a system call. This is what I have
script A will be a wrapper which will calll scripts B,C,D,E based on user input. I want to save these user input values somewhere before invoking either one of B,C,D,E scripts.So I thought(with my limited knowledge) of...
Can someone tell me how to do this?
I have a script A which should set some variables var1,var2.
script A will call script B which should be able to access var1 and var2 values as set by script A.
var1 and var2 can be anywhere as long as they are set by script A and accessible by script B. I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.