Help for this page

Select Code to Download


  1. 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 ... / ;
    
  2. or download this
    sub some_func {
       my $func = 'backup';
    ...
       seurity_check($cmd);
       system("$cmd");
    }
    
  3. or download this
    
    sub eval_cmd {
    ...
       use strict "vars";
       return $cmd;
    }
    
  4. or download this
    # $client can be given, or not
    
    ...
            system('$backup-cmd');
       }
    }