72 |
} elsif ( my $sh = delete $data->{sh} ) { |
} elsif ( my $sh = delete $data->{sh} ) { |
73 |
$result = { sh => scalar `$sh` }; |
$result = { sh => scalar `$sh` }; |
74 |
} elsif ( defined $data->{debug} ) { |
} elsif ( defined $data->{debug} ) { |
75 |
$self->{debug} = $data->{debug}; |
$result = { debug => $self->{debug} = $data->{debug} }; |
76 |
} else { |
} else { |
77 |
warn "[$port] UNKNOWN ", dump( $data ), $/; |
warn "[$port] UNKNOWN ", dump( $data ), $/; |
78 |
$result = { 'error' => $data }; |
$result = { 'error' => 'unknown', data => $data }; |
79 |
} |
} |
80 |
|
|
81 |
|
$result = { 'error' => 'result not reference', result => $result, data => $data } unless ref($result); |
82 |
|
|
83 |
warn "# [$port] >>>>\n"; |
warn "# [$port] >>>>\n"; |
84 |
Storable::store_fd( $result => $client ); |
Storable::store_fd( $result => $client ); |
85 |
} |
} |