Re: say,

2015-01-05 Thread Brandon McCaig
Andy: On Mon, Jan 05, 2015 at 01:22:34PM -0600, Andy Bach wrote: > And Perl should be noting which OS you're on and 'tranlating' "\n" into the > appropriate sequence. Though I get the same output for: > $ perl -e '{ local $\ = "\n"; print "hi" }' | perl -ne "print( ord($_), > qq{ }) foreach spli

Re: say,

2015-01-05 Thread Andy Bach
On Mon, Jan 5, 2015 at 12:53 PM, Brandon McCaig wrote: > > > Just like "print", but implicitly appends a newline. "say LIST" > > is simply an abbreviation for "{ local $\ = "\n"; print LIST > > }". > > print() already uses $\ so if that's all say() did it would have > no effect. Instead, say() te

Re: say,

2015-01-05 Thread Brandon McCaig
On Mon, Jan 05, 2015 at 02:25:15PM +0100, Hans Ginzel wrote: > Hello! Hello, > Is correct that say() uses "n"? Why it does not use $\ > (http://perldoc.perl.org/perlvar.htm#$OUTPUT_RECORD_SEPARATOR)? > See http://perldoc.perl.org/functions/say.html. Consider Perl6::Say - > http://rpm.pbone.net/in

Re: say

2010-05-09 Thread Shlomi Fish
On Sunday 09 May 2010 14:30:06 Owen wrote: > I have perl v5.10.0 on an up to date Ubuntu-9.04 > perldoc -f say= > say FILEHANDLE LIST > say LIST > say Just like "print", but implicitly appends a newline. > "say LIST" is simply an abbreviation for