Help for this page

Select Code to Download


  1. or download this
      sub cprintf {system('/usr/bin/printf', @_)}
    
  2. or download this
     cprintf("There are at least %'d ways to do it!\n", 42e6)
    
  3. or download this
      sub cprintf {
        my($fmt)= shift;
        $fmt=~s/%(-?\d*)d/%'$1d/g;
        system('/usr/bin/printf', $fmt, @_)
      }
    
  4. or download this
      system('/usr/bin/printf', 
             'Bash uses backtics for cmd substitution, eg: %s',
             '`ls *`')
    
  5. or download this
      Bash uses backtics for cmd substitution, eg: `ls *`
    
  6. or download this
       system(
    '/bin/printf "Bash uses backtics for cmd substitution, eg: %s" `ls *`'
               )