NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
\n or \r? (Score:4, Informative)
In TCL Expect, I always had to use \r. I've still never mastered exactly when you have to do that for Expect.pm, and when you can get away with \n. Could it vary from system to system? What does the user get when he tries \r? Do we even know when we can use each and why?
I'm debating whether or not to just put some of these things in a "known but inexplicable bugs" section and just release anyway.
Do it. Standard manpages don't have a BUGS section for nothing, you know. You can fix them later, if
J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
Re:\n or \r? (Score:2)
Everything else works for me, including large files and globbing. I'm also debating whether to require 5.6, but I'm worried I'll piss too many people off. I wish I had done it from the start.
Re:\n or \r? (Score:3, Informative)
Re:\n or \r? (Score:2)
Re:\n or \r? (Score:2)
Re:\n or \r? (Score:2)
Re:\n or \r? (Score:2)
I think the terminator to use depends on whether the terminal is in raw or cooked mode, so you might be able to check the mode and decide as appropriate. I think cooked mode translates \r to \n. I think I heard that \n should "always" work, for some value of always sufficiently less than or equal to 100%. :)
But I really don't know.
J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
Reply to This
Parent