home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / perl5 / Text::Tabs.z / Text::Tabs
Encoding:
Text File  |  1998-10-30  |  1.4 KB  |  67 lines

  1.  
  2.  
  3.  
  4. TTTTeeeexxxxtttt::::::::TTTTaaaabbbbssss((((3333))))                                                    TTTTeeeexxxxtttt::::::::TTTTaaaabbbbssss((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      Text::Tabs -- expand and unexpand tabs per the unix _e_x_p_a_n_d(1) and
  10.      _u_n_e_x_p_a_n_d(1)
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      use Text::Tabs;
  14.  
  15.      $tabstop = 4; @lines_without_tabs = _e_x_p_a_n_d(@lines_with_tabs);
  16.      @lines_with_tabs = _u_n_e_x_p_a_n_d(@lines_without_tabs);
  17.  
  18. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.      Text::Tabs does about what the unix utilities _e_x_p_a_n_d(1) and _u_n_e_x_p_a_n_d(1)
  20.      do.  Given a line with tabs in it, expand will replace the tabs with the
  21.      appropriate number of spaces.  Given a line with or without tabs in it,
  22.      unexpand will add tabs when it can save bytes by doing so.  Invisible
  23.      compression with plain ascii!
  24.  
  25. BBBBUUUUGGGGSSSS
  26.      expand doesn't handle newlines very quickly -- do not feed it an entire
  27.      document in one string.  Instead feed it an array of lines.
  28.  
  29. AAAAUUUUTTTTHHHHOOOORRRR
  30.      David Muir Sharnoff <muir@idiom.com>
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.