Skip Menu |

This queue is for tickets about the Net-OpenSSH-Parallel CPAN distribution.

Report information
The Basics
Id: 85487
Status: rejected
Priority: 0/
Queue: Net-OpenSSH-Parallel

People
Owner: Nobody in particular
Requestors: perl [...] toby.ink
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Should issue a warning if Net::OpenSSH::Parallel goe out of scope without ->run having been called.
Something like this: sub run { my $self = shift; $self->{did_run}++; ...; } sub cancel { my $self = shift; $self->{did_run} = "0 but true"; } sub DESTROY { my $self = shift; carp "Net::OpenSSH::Parallel object going out of scope, but ->run not called" unless $self->{did_run}; }
I don't like the idea. There are cases where "run" may legitimately not be called. For instance, if some problem is discovered along the way when declaring the set of actions to be performed. Having to call a "cancel" method to get rid of the warning is just a nuisance.