in reply to Opening not-existing command - Error Handling
Update: Try this:#!/usr/bin/perl use strict; use warnings; use SVN::Notify; my $command = 'xmllint --version'; open(my $CMD, "$command |") or die $!; my $exe = SVN::Notify->find_exe($command); while (<$CMD>) { print $_; } close $CMD;
#!/usr/bin/perl use strict; use warnings; use SVN::Notify; my $command = 'dir'; my $exe = SVN::Notify->find_exe($command); system($exe);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Opening not-existing command - Error Handling
by Dirk80 (Pilgrim) on Aug 16, 2011 at 11:50 UTC | |
by Tanktalus (Canon) on Aug 16, 2011 at 13:20 UTC | |
|
Re^2: Opening not-existing command - Error Handling
by Dirk80 (Pilgrim) on Aug 17, 2011 at 12:50 UTC |