I have very simple program where I have find out version of Python installed on machine.
#!/usr/local/bin/perl -w use strict; use warnings; open STDERR, '>&STDOUT'; $|=1; print "Hello World \n"; my $tmp = `python -V`; print "Version: $tmp \n"; ~
$tmp is not printing anything, looks like it is blank. output is as follows: Hello World Python 2.6.6 Version: But i am not able to capture the OP. Could anyone please tell me how to get the info?
thanks --girijaIn reply to Python -V command not returning any value by gjoshi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |