in reply to Re: version retrieval difficulties
in thread version retrieval difficulties
This doesn't work at allYeah, indeed,
Did you even test your code?$ perl -le 'open VER, "python -V |", \*STDERR or die $!; Unknown open() mode 'python -V |' at -e line 1.
I usually prefer the backtick operation:
$ perl -le 'chomp($v = qx/tar --version 2>&1/); print $v' tar (GNU tar) 1.15.1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: version retrieval difficulties
by shandor (Monk) on Apr 13, 2007 at 15:08 UTC |