Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. stones1030

    CSV files parsing error

    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...
  2. stones1030

    CSV files parsing error

    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...
  3. stones1030

    Parsing CSV files

    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,
  4. stones1030

    Parsing CSV files

    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...
  5. stones1030

    Exception handling

    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...
  6. stones1030

    CVS on Windows

    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...
  7. stones1030

    what's wrong with this script?

    Thanks. you made my day. I was able to fix all the errors and now the script is working as I wanted it to be.
  8. stones1030

    what's wrong with this script?

    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...
  9. stones1030

    what's wrong with this script?

    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...
  10. stones1030

    Reusale code

    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...
  11. stones1030

    Parsing CSV files

    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,
  12. stones1030

    how to share variables

    I think i found the answer to my last Q. I should be using %ENV. thanks
  13. stones1030

    how to share variables

    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,
  14. stones1030

    how to share variables

    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...
  15. stones1030

    how to share variables

    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...

Part and Inventory Search

Back
Top