jkaton125 has asked for the wisdom of the Perl Monks concerning the following question:
if ( $self->{bareboard} ) { my @args = ('cp', '-cdpPr', $self->{publicDir}, $oldPublic); system(@args); if ($? == -1) { DDialog->new( "ERROR", "failed to execute: $!\n" ); DDialog->destroy(); } elsif ($? & 127) { my $t1 = ($? & 127); my $t2 = ($? & 128) ? 'with' : 'without'; DDialog->new( "ERROR", "died w sig $t1, $t2 coredump\n" ); DDialog->destroy(); } else { my $t1 = $? >> 8; DDialog->new( "ERROR", "child exited with value $t1\n" ); DDialog->destroy(); } } else { rename $self->{publicDir}, $oldPublic; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Copy Folder Preserve Attributes
by NetWallah (Canon) on Dec 08, 2017 at 20:08 UTC | |
by Anonymous Monk on Dec 08, 2017 at 22:41 UTC | |
by pryrt (Abbot) on Dec 08, 2017 at 23:14 UTC | |
by Anonymous Monk on Dec 11, 2017 at 16:43 UTC |