in reply to Re^2: file copy
in thread file copy

If the file is not checked out, clearcase will not allow you to modify it. I'm not sure if File::Copy will return any error messages, but it wouldn't hurt to check. I'm not sure of the syntax (for File::Copy) either, so I can't really tell you if that's right.

Perl also has chmod built in. Try copying with File::Copy and then
chmod 0644, $file or warn "Unable to chmod $file!\n$!\n";
or something similar.

Replies are listed 'Best First'.
Re^4: file copy
by Madam (Sexton) on Apr 26, 2005 at 12:16 UTC
    As you said i did File::NCopy->new('set_permission' => "777")->copy($filepath,"$filename"); and then chmod 0644, $filename; it works now.Thanks .