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.
In reply to Module for running OS-commands - non-OS dependent? by newbie01.perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |