Help for this page

Select Code to Download


  1. or download this
    # Check if a destination is defined
    unless (defined $destination) {   
        showUsage ();
    }
    
  2. or download this
    # Check if a destination is defined
    unless (defined $destination) {   
        print "No destination given.\n";
        showUsage ();
    }
    
  3. or download this
    # Run the program and show the output
    my @result;
    ...
            print $result;
            chomp $result;
    }
    
  4. or download this
    # Run the program and show the output
    system( "$cmd 2>&1") == 0
        or die "rsync failed: $! / $?";