home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / PERL30X.ZIP / S2P.MAN < prev    next >
Text File  |  1991-01-14  |  1KB  |  49 lines

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