-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, Jun 22, 2009 at 03:16:05AM +0530, Gurjeet Singh wrote:
[...] > [...] But it sure cost me a few cycles to > realize that the files I copied from my Windows host to my Fedora VM were > just not the thing perl would like. Had it been a Windows-ish perl, it would have worked. Chomp uses whatever the current value of "line separator" (or "input record separator", to be more precise) is (that's $/). Under Unix it's just "\n". Alas, $/ can't be a regular expression. The canonical way to deal with that can be seen e.g. here[1]. [1] <http://perldoc.perl.org/perlport.html#Newlines> Regards - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFKPxIiBcgs9XrR2kYRAqCzAJ9uVOoVGrGKMygL6W1xPVC0X629UQCfdwFc i7tYm+afcuu8DVo4c+mdYIM= =0rp6 -----END PGP SIGNATURE----- -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers