home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / perl / os2perl / s2p.man < prev    next >
Text File  |  1991-06-18  |  2KB  |  63 lines

  1.  
  2.  
  3.  
  4.  
  5. NEW                                                        S2P(1)
  6.  
  7.  
  8.  
  9. NAME
  10.      s2p - Sed to Perl translator
  11.  
  12. SYNOPSIS
  13.      s2p [options] filename
  14.  
  15. DESCRIPTION
  16.      S2p takes a sed script specified on the command line (or
  17.      from standard input) and produces a comparable perl script
  18.      on the standard output.
  19.  
  20.      Options
  21.  
  22.      Options include:
  23.  
  24.      -D<number>
  25.           sets debugging flags.
  26.  
  27.      -n   specifies that this sed script was always invoked with
  28.           a sed -n.  Otherwise a switch parser is prepended to
  29.           the front of the script.
  30.  
  31.      -p   specifies that this sed script was never invoked with a
  32.           sed -n.  Otherwise a switch parser is prepended to the
  33.           front of the script.
  34.  
  35.      Considerations
  36.  
  37.      The perl script produced looks very sed-ish, and there may
  38.      very well be better ways to express what you want to do in
  39.      perl.  For instance, s2p does not make any use of the split
  40.      operator, but you might want to.
  41.  
  42.      The perl script you end up with may be either faster or
  43.      slower than the original sed script.  If you're only
  44.      interested in speed you'll just have to try it both ways.
  45.      Of course, if you want to do something sed doesn't do, you
  46.      have no choice.  It's often possible to speed up the perl
  47.      script by various methods, such as deleting all references
  48.      to $\ and chop.
  49.  
  50. ENVIRONMENT
  51.      S2p uses no environment variables.
  52.  
  53. AUTHOR
  54.      Larry Wall <lwall@jpl-devvax.Jpl.Nasa.Gov>
  55.  
  56. FILES
  57. SEE ALSO
  58.      perl The perl compiler/interpreter
  59.      a2p  awk to perl translator
  60.  
  61. DIAGNOSTICS
  62. BUGS
  63.