[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] When is \r really \n in MacPerl!?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

At 5:22 PM -0800 2/9/98, Mark F. Murphy wrote:

} The following:
}
} print 'Ord \r: ' . ord("\r") . "\n";
} print 'Ord \n: ' . ord("\n") . "\n";
}
} Yields:
}
} Ord \r: 10
} Ord \n: 13
}
} In MacPerl 5.1.5r4.
}
} This is obviously a little backwards.
}

Excuse me?  What makes you thing that \n and \r have fixed values?  (Hint:
Kernighan and Ritchie is no longer the standard.)

The results of your script are exactly right for MacPerl, and it makes
utter sense to do this under MacOS.


} mark
}
} ---------------------------------------------------------------------------
}  Mark F. Murphy, Director Software Development   <mailto:markm@tyrell.com>
}  Tyrell Software Corp                            <http://www.tyrell.com>
}  PowerPerl(tm), Add Power To Your Webpage!       <http://www.powerperl.com>
} ---------------------------------------------------------------------------
} Member of Families Against Internet Censorship: rainbow.rmi.net/~fagin/faic
}


- -----
Paul J. Schinder
schinder@pobox.com


-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBNN+xBlZaVc52j0XhEQLKPACgwsGcyBQ8Rp3g3csihE0DXnwE7EUAn2LL
MnK8V+QoJDlukvnDQa0y3m9m
=u9jn
-----END PGP SIGNATURE-----


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch