P
Peng Yu
Hi,
File::Copy would introduce 'copy' in the current namespace, which
would result in conflict in the example below. I'm wondering if there
is anyway to forbid 'copy' be introduced in the current namespace.
Thanks,
Peng
#!/usr/bin/perl
use strict;
use warnings;
use File::Copy;
File::Copy::copy('copy.pl', 'some.pl');
copy('copy.pl', 'other.pl');#conflicts with the following subroutine
__END__
#The following function can not be defined as it is conflicted with
File::Copy::copy.
sub copy {
print "in copy\n";
}
File::Copy would introduce 'copy' in the current namespace, which
would result in conflict in the example below. I'm wondering if there
is anyway to forbid 'copy' be introduced in the current namespace.
Thanks,
Peng
#!/usr/bin/perl
use strict;
use warnings;
use File::Copy;
File::Copy::copy('copy.pl', 'some.pl');
copy('copy.pl', 'other.pl');#conflicts with the following subroutine
__END__
#The following function can not be defined as it is conflicted with
File::Copy::copy.
sub copy {
print "in copy\n";
}