On Wed, 9 Jan 2002, Chris Devers wrote:

> ....ok, now I'm confused too. Anyone else have better ideas?

Welp, at Paul McCann's suggestion...

[localhost Wed 7:26:57pm ~]% ls -la perltest.pl
-rwx--x--x  1 chris  staff  48 Jan  9 19:21 perltest.pl
[localhost Wed 7:28:51pm ~]% perl -pi -e 'tr/\015/\012/' perltest.pl 
[localhost Wed 7:28:59pm ~]% ls -la perltest.pl
-rwx--x--x  1 chris  staff  48 Jan  9 19:28 perltest.pl
[localhost Wed 7:29:01pm ~]% ./perltest.pl 
Perl on Mac OS X
[localhost Wed 7:29:06pm ~]% 
 
I created that script by pasting from one Terminal window's email client
to another's Vim editor, so the line endings got screwed up while passing
through the system clipboard. Should OSX Perl be more tolerant of this
sort of thing? Pasting isn't exactly an unusual operation...


-- 
Chris Devers                           [EMAIL PROTECTED]
Apache / mod_perl / http://homepage.mac.com/chdevers/resume/


Reply via email to