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
Hello,
Could you please unsubscribe me from this mailing list.
Sent from my HTC One⢠VX, an AT&T 4G LTE smartphone
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?
>
> -
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: $
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
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
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
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()