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