Actually they are exactly the same - in both releases, but point taken.
One answer could be create another function: my %distroCmd = ( "Debian" => \&debian, "Fedora" => \&fedora, "Ubuntu" => \&ubuntu, );
sub debian { system('sudo apt-get install libpoe-component-irc-perl sqlite sqlite3'); system('sudo cpan ...'); }
But tbh - a the current method of doing it will only get you so far...
Actually they are exactly the same - in both releases, but point taken.
One answer could be create another function:
my %distroCmd = (
"Debian" => \&debian,
"Fedora" => \&fedora,
"Ubuntu" => \&ubuntu,
);
sub debian { component- irc-perl sqlite sqlite3');
system('sudo apt-get install libpoe-
system('sudo cpan ...');
}
But tbh - a the current method of doing it will only get you so far...