- or download this
my $cmd_tmpl = {
backup => '$bak_cmd $client > $file',
...
# all the names of the vars to be substituted
my @all_my_vars = qw / bak_cmd client file list_cmd ... / ;
- or download this
sub some_func {
my $func = 'backup';
...
seurity_check($cmd);
system("$cmd");
}
- or download this
sub eval_cmd {
...
use strict "vars";
return $cmd;
}
- or download this
# $client can be given, or not
...
system('$backup-cmd');
}
}