Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^2: odd behavior with DATA section

by Nkuvu (Priest)
on Jul 25, 2005 at 17:36 UTC ( #477916=note: print w/replies, xml ) Need Help??

in reply to Re: odd behavior with DATA section
in thread odd behavior with DATA section

Changed the text after the __DATA__ token like your example. The warnings went away. Undid the changes, the warnings did not reappear.

So frustration of frustrations, the file seems to be "fixed." I can't reproduce the error, even after recreating the file exactly the same way I did on Friday. If I did not have documented evidence of the output I'd categorize this as temporary insanity.

Replies are listed 'Best First'.
Re^3: odd behavior with DATA section
by converter (Priest) on Jul 26, 2005 at 00:53 UTC

    Somewhere along the way your text was probably edited with both a Windows editor and a Mac editor, leaving alternating records with an odd combination of CR and LF on the ends, creating "invisible" empty records in the process. Merging the lines together probably removed the offending characters.

      I wish it were that simple to diagnose. The Excel file used to create the script was created on Windows, and all editing of the script was done in emacs on Windows. The only time this script was even run on a Mac was after I got home last Friday evening and copied the script into emacs on my Mac. The script created on the Mac never left the Mac.

      Since I can't recreate the issue, I don't think there's any way I'll be able to definitively tell what was really going on. Which I find to be supremely frustrating.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://477916]
[Discipulus]: why perl -e 'print q(\'a string\'),"\n"' gives -bash: syntax error near unexpected token `)' ??
[Discipulus]: i'm not escaping correctly?
[moritz]: Discipulus] iirc bash doesn't let you escape ' with \
[moritz]: not inside a single-qouted string at least
[moritz]: echo 'a'\''

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2017-11-24 10:13 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (346 votes). Check out past polls.