Help for this page

Select Code to Download


  1. or download this
    my %h;
    
    ...
    for my $k (keys(%h)) {
       print("$k: ", join(', ', @{ $h{$k} }), "\n");
    }
    
  2. or download this
    kate
    dan
    ...
    doug.smith
    test
    ^Z
    
  3. or download this
    print "Enter names of user to add:\n";
    chomp( my @users = map lc, <> );
    ...
    fore my $i (0..$#users) {
       $adds{$users[$i]} = qx(ls /home/$exusers[$i]/.bash_profile);
    }
    
  4. or download this
    kate doug.smith
    dan test
    ^Z
    
  5. or download this
    my %adds;
    print "Enter new user and mirrored user pairs:\n";
    ...
       my ($user, $exuser) = map lc, split;
       $adds{$user} = qx(ls /home/$exuser/.bash_profile);
    }