Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Alright see that, well I have a couple direcotries in $list and I wanna put them to a new direcotry called new. Now is this possible to transer files and directories. Can I do it with no modules### See if they wanna move user files if(param('move') eq "yes") { $old = param('old'); ### Start a foreach loop for all users foreach $line (@list) { opendir(DIR, "$old$line"); my @userfiles = sort grep !/^\.\.?\z/, readdir DIR; close DIR; ### Need put each direcotry in a new one } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: moving files
by thunders (Priest) on Jun 29, 2002 at 05:20 UTC | |
Re: moving files
by rjray (Chaplain) on Jun 29, 2002 at 07:19 UTC | |
Re: moving files
by erikharrison (Deacon) on Jun 29, 2002 at 16:42 UTC |
Back to
Seekers of Perl Wisdom