This is completely off topic for the perl-ldap-dev list. Please take it elsewhere.
Graham.
On Tue, May 23, 2000 at 05:14:21PM +0200, Bouarich, Reda wrote:
>
> I want to write in a file using a perl program;i'm using this but it doesn't
> seems to work, can anyone know how does it work?
> thanks.
> reda.
>
>
> use lib '.';
> use lib 'lib';
> use Net::LDAP;
> use Shell qw(mkdir );
> use File::Copy ;
> use POSIX;
>
>
> $user_name='tiger';
> $resource='mcc-resource.dat';
> $path=("/usr/reda/PERL").("/").("$user_name").("/");
> chop $path;
> mkdir ("$path");
> open (FILE,">$path/$resource");
> copy ("$whathavetobecopied", "/usr/reda/PERL/tiger/mcc-resource.dat");
>
|