Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^3: capturing command output

by chrestomanci (Priest)
on Jan 25, 2012 at 13:56 UTC ( #949909=note: print w/ replies, xml ) Need Help??

in reply to Re^2: capturing command output
in thread capturing command output

Very interesting. ++

I had no idea that perl did that optimization, it is good to know, but it would be nice to have a way to control it.

Comment on Re^3: capturing command output
Replies are listed 'Best First'.
Re^4: capturing command output
by Eliya (Vicar) on Jan 25, 2012 at 14:17 UTC
    but it would be nice to have a way to control it.

    You can already (indirectly) control it — at least in the direction of forcing the use of the shell.  Just add a dummy ";" to the command (which should always be possible without changing the semantics).  Or simply call sh -c "..." yourself.

    (And be sure to add a comment regarding the ";", or else the next maintainer might remove that seemingly superfluous character again... :)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://949909]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2015-12-01 18:07 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (24 votes), past polls