CodeJunkie has asked for the wisdom of the Perl Monks concerning the following question:
Hi Perl Monks,
I need to be able to write a perl script that can create and remove directories and files on both windows and unix based systems.
I could use the system(mkdir mydir) command and just have different code that runs depending on the file system, how I thought there might be a core perl module out there which would run on both platforms. Assuming that I can't find a perl module and I opt for the system() method, is there a DOS command that will allow me to remove entire directories and files, i.e. like 'rm -r mydir' in UNIX.
thanks for your help,
Tom
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: platform independent system commands
by MZSanford (Curate) on Mar 19, 2003 at 14:21 UTC | |
|
Re: platform independent system commands
by sschneid (Deacon) on Mar 19, 2003 at 14:23 UTC | |
by IlyaM (Parson) on Mar 19, 2003 at 14:40 UTC | |
|
Re: platform independent system commands
by hardburn (Abbot) on Mar 19, 2003 at 15:13 UTC | |
|
Re: platform independent system commands
by BrowserUk (Patriarch) on Mar 19, 2003 at 16:55 UTC |