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

As you said i did File::NCopy->new('set_permission' => "777")->copy($filepath,"$filename"); and then chmod 0644, $filename; it works now.Thanks .