Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: Very curious Problem...

by vinoth.ree (Monsignor)
on Jan 23, 2013 at 09:09 UTC ( #1014863=note: print w/replies, xml ) Need Help??

in reply to Very curious Problem...

Is there any safer/simple way to "system"/run a command and get its output into a variable?

Use backtick (``) to run a command and get the output into a variable.


Adding Additional info.

I always use "qx" which is another form for backticks, which in perl will capture the return from the system call.


Even check for capture and capturex methods in IPC::System::Simple module

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014863]
[shmem]: erix, yes, it's a WTF. Since...
[erix]: antisemitic && (pro-)russian. Makes sense :P
[shmem]: erix: what's antisemitic in there? Tell me.
[erix]: AngloZionist
[shmem]: and it is *not* pro-russian. It describes the western world.
[erix]: I'm not going to read it so I could be mistaken but it reeks of useful idiocy
[shmem]: AngloZionist is not an antisemitic term.
[shmem]: erix: be assured that we all are horribly mistaken, always. What would we write tests for, if not for that fact?
[shmem]: and then, audiatur et altera pars.
[erix]: and what's the "Vineyard"? Don't tell me it's doing supernatural stuff too.

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2018-03-19 20:55 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (246 votes). Check out past polls.