Copyright (C) 2000-2012 |
Manpages S2PSection: Perl Programmers Reference Guide (1)Updated: 2005-03-28 Index Return to Main Contents NAMEs2p - Sed to Perl translatorSYNOPSISs2p [options] filenameDESCRIPTIONs2p takes a sed script specified on the command line (or from standard input) and produces a comparable perl script on the standard output.OptionsOptions include:
ConsiderationsThe perl script produced looks very sed-ish, and there may very well be better ways to express what you want to do in perl. For instance, s2p does not make any use of the split operator, but you might want to.The perl script you end up with may be either faster or slower than the original sed script. If you're only interested in speed you'll just have to try it both ways. Of course, if you want to do something sed doesn't do, you have no choice. It's often possible to speed up the perl script by various methods, such as deleting all references to $\ and chop. ENVIRONMENTs2p uses no environment variables.AUTHORLarry Wall <larry@wall.org>FILESSEE ALSOperl The perl compiler/interpreter a2p awk to perl translator DIAGNOSTICSBUGS
IndexThis document was created by man2html, using the manual pages. Time: 10:34:42 GMT, April 20, 2024 |