Custom Search : Technical Guides Sybase Oracle UNIX Javascript

Technical Guides

Of Interest

Business Intelligence and Analytics

Oracle Training

UNIX » Perl » Programming » Code

Perl: Stripping out function calls


Doing a Perl global replace via reg ex is the best way to strip out matching parens from a program.

-- Strip out all MAX function calls


while (<STDIN>)
$line1 = $_ ;

chomp $line1;

$line1 =~ s/max +/max/ig ;

$line1 =~ s/max\((.+?)\)/\1/ig ;

print $line1 . "\n" ;

UNIX : Related Topics

Sybase Web Site
Sybase iAnywhere Mobile Web Site
Oracle Enterprise Web Site

Get the latest Rocket99 news and tech tips via

Site Index About this Guide to Sybase, Oracle, and UNIX Contact Us Advertise on this site

Copyright © 2016 Stoltenbar Inc All Rights Reserved.