s2p - Sed to Perl translator
s2p [-np] [-Dnumber] filename
The s2p(1) utility takes a sed(1) script specified on the command line (or from standard input) and produces a comparable perl(1) script on the standard output.
Options include:
The perl(1) script produced looks very much like sed; there might be better ways to express what you want to do in perl. For instance, even though s2p does not use the split operator, you might want to do so.
The perl(1) script produced might be either faster or slower than the original sed(1) script. If you are interested only in speed, try both scripts to determine which is faster. If you want to do something sed does not do, however, and you must therefore use perl, there are several things you can do to speed up the perl script, such as deleting all references to $\ and chop.
The s2p(1) utility uses no environment variables.
perl(1) (the perl(1) compiler/interpreter)
a2p(1) (the awk(1) to perl(1) translator)