3 package System::Introspector::Util;
11 sub transform_exceptions (&) {
14 my $result = eval { $code->() };
15 return { error => "$@" }
20 sub handle_from_command {
22 open my $pipe, '-|', $command
23 or die "Unable to read from command '$command': $!\n";