in reply to Re^3: File name is long to copy
in thread File name is long to copy
SSCCE works for me.
use strict; use warnings; use File::Copy 'copy'; use Test::More tests => 1; my $longname = 'foo_' . ('z' x 200); open my $fh, '>', $longname; print $fh "Hello!\n"; close $fh; my $toname = 'bar_' . ('z' x 200); ok copy ($longname, $toname) or diag $!;
Maybe your O/S or your filesystem is the problem here?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: File name is long to copy
by harishnv (Sexton) on Apr 26, 2020 at 13:57 UTC | |
by marto (Cardinal) on Apr 26, 2020 at 14:00 UTC | |
by Anonymous Monk on Apr 26, 2020 at 22:47 UTC | |
by Corion (Patriarch) on Apr 27, 2020 at 07:09 UTC |