One day, I'll start remembering this ist doesn't set reply-to...

On 2/22/06, Jay Savage <[EMAIL PROTECTED]> wrote:
> On 2/21/06, Wagner, David --- Senior Programmer Analyst --- WGO
> <[EMAIL PROTECTED]> wrote:
> > Timothy Johnson wrote:
> > > I don't have time right now to run it, but I notice that you left out
> > > the portion of the code in LABEL2: where you actually print whether or
> > > not it worked.  Is it possible that it really is working but you
> > > forgot this line?
> > >
> > >                 printf "<--Comma hit!!";
> > >
> > > Sorry if that seems like a stupid question, but I've gotten stuck on
> > > worse.
> > >
> >
> >         No. The second is an actual Production script and as it does the 
> > split and checks the data , it fails because the comma was still in the 
> > code. That is why I know it fails.
> >
> > Wags ;)
> >
>
> Wags,
>
> Your error is someplace else: the supplied code works fine for me,
> although it seems a bit convoluted.
>
> I don't see where you're actually printing the output to file, maybe
> you're grabbing it too early in the loop? Or printing the wrong
> variable? It also looks like you're expecting this data to be passed
> around from system to system--else why look out for \r?--maybe you're
> having other encoding issues.  Are the double quotes being stipped as
> they're supposed to?
>
> Also, print out $. every time through, as well as $_ in both while
> loops. Make sure the program is seeing the data you think it's seeing.
> My gut reaction is that if a script works with data from __DATA__ and
> fails with a file, the problem is with the file. In particular, try
> opening the file :crlf instead of trying to handle the line endings by
> hand. Make sure you don't have embedded control characters in the data
> (if you read the file with cat or even emacs, you may see the infamous
> ^M in the middle of the lines somewhere), etc.
>
> Also, make your life easier and grab a copy of Text::CSV.
>
> HTH,
>
> -- jay
> --------------------------------------------------
> This email and attachment(s): [  ] blogable; [ x ] ask first; [  ]
> private and confidential
>
> daggerquill [at] gmail [dot] com
> http://www.tuaw.com  http://www.dpguru.com  http://www.engatiki.org
>
> values of β will give rise to dom!
>


--
--------------------------------------------------
This email and attachment(s): [  ] blogable; [ x ] ask first; [  ]
private and confidential

daggerquill [at] gmail [dot] com
http://www.tuaw.com  http://www.dpguru.com  http://www.engatiki.org

values of β will give rise to dom!
  • Re: Repeated Regex ove... Jay Savage

Reply via email to