dbs has asked for the wisdom of the Perl Monks concerning the following question:
thx!my $NuserDir = new FileHandle "+>> /home/$key"; while (my $fobj = readdir $NuserDir) { next if $fobj eq '.' or $fobj eq '..' or $fobj eq '.profile'; print ("chown -R $key:$euser_group $fobj"); } Can't use an undefined value as a symbol reference at usercfgforfacs.t +est.plx line 256.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: use FileHandle, readdir???
by GrandFather (Saint) on May 25, 2011 at 21:04 UTC | |
|
Re: use FileHandle, readdir???
by toolic (Bishop) on May 25, 2011 at 21:07 UTC | |
|
Re: use FileHandle, readdir???
by kennethk (Abbot) on May 25, 2011 at 21:07 UTC |