in reply to Re: Regex problem
in thread Regex problem

I just tried that and it still doesn't work. Another note is that I have tested what the code outputs for both the $manuCode and $manuID. For each code the id looks identical. What it seems like I'm getting is ASD=ASD for example.

Replies are listed 'Best First'.
Re^3: Regex problem
by kennethk (Abbot) on Dec 15, 2008 at 20:35 UTC
    I threw your code into my editor and threw in use strict. Most looks fine, but the %catReplace hash doesn't get initialized anywhere I can see - would this matter? The other obvious possibility is that you've got whitespace problems. Have you tried seeing if length returns the expected values?
      Thank you all for the help. Was not a coding problem but a converting problem. I now truely hate CSV files. Added a newline break which i got rid of and another unknown character I just used substr to get rid of.

        which is why the smart players use Text::CSV or Text::xSV.


        Perl's payment curve coincides with its learning curve.