On 9/30/10 10:59 PM, Chas. Owens wrote:
The only thing I can do to reproduce what you are seeing is to place a
control-d (aka ASCII character 4) in the file.  Try saying this

echo 'print "hello\n"' | perl -

If that works
    It did.
then try this:

perl -nle 'print for grep { $_<  31 or $_>  126 } map ord, split //' t.pl

It will tell use what control characters may be lurking in that file of yours.

Here is the output from the above command:

13
13
13
13

What does that mean?

- Mark

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to