newbie01.perl has asked for the wisdom of the Perl Monks concerning the following question:
Hi gurus,
Is there a module in Perl that allows running OS commands that are non-OS specific?
Basically, what am aiming to do is avoiding having to check for the OS and then run the OS-specific command via system or qw. For example, DOS uses del and *nix uses rm, DOS uses ren and *unix uses mv.
The *nix greps, I could probably get away with it with using regex but for the other "basic" commands, I can't ... hu hu hu. I believe I found a "find" module as well but am kinda hoping there is a module that "combine" all the other modules into one universal module.
For starters, am looking for a module that will allow me to run the same command regardless of which OS I run the Perl script on, that is, if such a module exists. Or are there Perl equivalent commands already some of the OS commands?
Your guidance will be very much appreciated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Module for running OS-commands - non-OS dependent?
by toolic (Bishop) on Nov 29, 2009 at 01:17 UTC | |
|
Re: Module for running OS-commands - non-OS dependent?
by misterwhipple (Monk) on Nov 29, 2009 at 01:55 UTC | |
|
Re: Module for running OS-commands - non-OS dependent?
by keszler (Priest) on Nov 29, 2009 at 01:16 UTC | |
|
Re: Module for running OS-commands - non-OS dependent?
by jacques (Priest) on Nov 29, 2009 at 01:12 UTC | |
|
Re: Module for running OS-commands - non-OS dependent?
by biohisham (Priest) on Nov 29, 2009 at 14:01 UTC | |
|
Re: Module for running OS-commands - non-OS dependent?
by Anonymous Monk on Nov 30, 2009 at 04:38 UTC |