summaryrefslogtreecommitdiff
path: root/SCP.pm
diff options
context:
space:
mode:
authorivan <ivan>2004-03-03 08:44:55 +0000
committerivan <ivan>2004-03-03 08:44:55 +0000
commit0ad5fbd11b6296d8c92a8c82eaf415e81cb0140e (patch)
treec4c6e2fcb0a668ae25884bc526223866dcabb9ea /SCP.pm
parent8547d9d587841c70f11f57ce0f2968ea1e0511ae (diff)
Diffstat (limited to 'SCP.pm')
-rw-r--r--SCP.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/SCP.pm b/SCP.pm
index 5054d55..6347cae 100644
--- a/SCP.pm
+++ b/SCP.pm
@@ -1,7 +1,7 @@
package Net::SCP;
use strict;
-use vars qw($VERSION @ISA @EXPORT_OK $scp);
+use vars qw($VERSION @ISA @EXPORT_OK $scp $DEBUG);
use Exporter;
use Carp;
use File::Basename;
@@ -16,6 +16,8 @@ $VERSION = '0.07';
$scp = "scp";
+$DEBUG = 0;
+
=head1 NAME
Net::SCP - Perl extension for secure copy protocol
@@ -288,7 +290,7 @@ sub put {
$remote = $self->{'cwd'}. "/$remote" if $self->{'cwd'} && $remote !~ /^\//;
my $dest = $self->{'host'}. ":$remote";
$dest = $self->{'user'}. '@'. $dest if $self->{'user'};
- warn "scp $local $dest\n";
+ warn "scp $local $dest\n" if $DEBUG;
$self->scp($local, $dest);
}