Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Problem with Perl 'system' comand

by lorn (Monk)
on May 26, 2010 at 16:42 UTC ( [id://841753]=note: print w/replies, xml ) Need Help??


in reply to Problem with Perl 'system' comand

Because system comand create another bash process for STDOUT/STDERR, so your local variable probably does not exits.

Try to pass the variable in the system() call, like:

system("LANG=Perl /usr/bin/my_c_program");

Replies are listed 'Best First'.
Re^2: Problem with Perl 'system' comand
by ikegami (Patriarch) on May 26, 2010 at 16:56 UTC
    The environment is usually inherited from the parent

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-03-28 14:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found