in reply to Why isn't my array populating?
That you got output on your screen is your clue that java was writing to STDERR, not STDOUT. Redirect and all will be fixed (adjust accordingly to your shell's syntax, of couse).
my @javaInfo = `java -version 2>&1`;
The cake is a lie.
The cake is a lie.
The cake is a lie.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why isn't my array populating?
by gokuraku (Monk) on Mar 27, 2008 at 19:16 UTC | |
by graff (Chancellor) on Mar 28, 2008 at 00:55 UTC |