2 ''' $Header: s2p.man,v 4.0 91/03/20 01:58:07 lwall Locked $
5 ''' Revision 4.0 91/03/20 01:58:07 lwall
8 ''' Revision 3.0 89/10/18 15:35:09 lwall
11 ''' Revision 2.0 88/06/05 00:15:59 root
12 ''' Baseline version 2.0.
33 ''' Set up \*(-- to give an unbreakable dash;
34 ''' string Tr holds user defined translation string.
35 ''' Bell System Logo is used as a dummy character.
40 .if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
41 .if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
57 s2p - Sed to Perl translator
59 .B s2p [options] filename
62 takes a sed script specified on the command line (or from standard input)
63 and produces a comparable
65 script on the standard output.
73 specifies that this sed script was always invoked with a sed -n.
74 Otherwise a switch parser is prepended to the front of the script.
77 specifies that this sed script was never invoked with a sed -n.
78 Otherwise a switch parser is prepended to the front of the script.
80 The perl script produced looks very sed-ish, and there may very well be
81 better ways to express what you want to do in perl.
82 For instance, s2p does not make any use of the split operator, but you might
85 The perl script you end up with may be either faster or slower than the original
87 If you're only interested in speed you'll just have to try it both ways.
88 Of course, if you want to do something sed doesn't do, you have no choice.
90 S2p uses no environment variables.
92 Larry Wall <lwall@jpl-devvax.Jpl.Nasa.Gov>
95 perl The perl compiler/interpreter
97 a2p awk to perl translator