Help for this page

Select Code to Download


  1. or download this
        printf "TFD> %32.32s %16.16s %s %s\n", $user, $pass,
            ($b_admin? '*': ' ') x 8,
            ($b_reports? '*': ' ') x 8;
    
  2. or download this
    #!/usr/bin/perl -w
    
    ...
        my $flag = $pusers->{$user};
        printf "%10.10s  %s\n", $user, ($flag? '*': ' ') x 8;
    }
    
  3. or download this
          dick
         harry
    ...
        louise  *
        thelma
           tom  *
    
  4. or download this
    # Main program
    
    ...
        $mark = $flag? '*': ' ';
        printf "%10.10s  %s\n", $user, $mark x 8;
    }
    
  5. or download this
          dick
          dick
    ...
        thelma
           tom  *
           tom  ********
    
  6. or download this
    # Subroutines
    sub myprintf {
    ...
    
        myprintf "%10.10s  %s\n", $user, ($flag? '*': ' ') x 8;
    }
    
  7. or download this
    TFD> $VAR1 = [
              '%10.10s  %s
    ...
              '*',
              '*'
            ];
    
  8. or download this
        printf "TFD> %32.32s %16.16s %s %s\n", $user, $pass,
            scalar ($b_admin? '*': ' ') x 8,
            scalar ($b_reports? '*': ' ') x 8;
    
  9. or download this
        printf "TFD> %32.32s %16.16s %s %s\n", $user, $pass,
            ''.($b_admin? '*': ' ') x 8,
            ''.($b_reports? '*': ' ') x 8;