Re: Get return value when running cmd like this

2015-01-05 Thread Charles DeRykus
On Mon, Jan 5, 2015 at 3:20 PM, Harry Putnam wrote: > When running shell commands from perl script with an open() instead of > system() or exec how is the return value snagged. > > I guess, if it doesn't die, it worked but how to snag that information > and at what point? > > --- 8< snip

Unsubscribe

2015-01-05 Thread dchigginb...@ualr.edu
Hello, Could you please unsubscribe me from this mailing list. Sent from my HTC Oneā„¢ VX, an AT&T 4G LTE smartphone

Re: Get return value when running cmd like this

2015-01-05 Thread Brandon McCaig
Harry: On Mon, Jan 05, 2015 at 06:20:06PM -0500, Harry Putnam wrote: > When running shell commands from perl script with an open() instead of > system() or exec how is the return value snagged. > > I guess, if it doesn't die, it worked but how to snag that information > and at what point? > > -

Get return value when running cmd like this

2015-01-05 Thread Harry Putnam
When running shell commands from perl script with an open() instead of system() or exec how is the return value snagged. I guess, if it doesn't die, it worked but how to snag that information and at what point? --- 8< snip -- 8< snip -- 8', "$log" or die "Can't open $log: $

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

say,

2015-01-05 Thread Hans Ginzel
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/index.php3/stat/45/idpl/1146707/numer/3/nazwa/Perl6::Say#lbAE. What about say()