Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
s2p(1)
Edit
PageHistory
Diff
Info
LikePages
S2P !!!S2P NAME SYNOPSIS DESCRIPTION ENVIRONMENT AUTHOR FILES SEE ALSO DIAGNOSTICS BUGS ---- !!NAME s2p - Sed to Perl translator !!SYNOPSIS __s2p [[options] filename__ !!DESCRIPTION ''s2p'' takes a sed script specified on the command line (or from standard input) and produces a comparable ''perl'' script on the standard output. __Options__ Options include: __-D__ sets debugging flags. __-n__ specifies that this sed script was always invoked with a __sed -n__. Otherwise a switch parser is prepended to the front of the script. __-p__ specifies that this sed script was never invoked with a __sed -n__. Otherwise a switch parser is prepended to the front of the script. __Considerations__ The 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. !!ENVIRONMENT s2p uses no environment variables. !!AUTHOR Larry Wall larry@wall.org'''' !!FILES !!SEE ALSO perl The perl compiler/interpreter a2p awk to perl translator !!DIAGNOSTICS !!BUGS ----
One page links to
s2p(1)
:
Man1s
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.