Search Results

Search: Posts Made By: Parthiban
5,310
Posted By rugdog
here's the code with some comments to try to...
here's the code with some comments to try to explain...i hope it helps..



$str=shift @ARGV;
while(<>){
# match function name and save name and line to display later in
# case...
5,310
Posted By rugdog
try this version $str=shift @ARGV; ...
try this version


$str=shift @ARGV;
while(<>){
if(!$sw && /(.+\(.*\))/){
$func_name=$1;
$func_start=$.;
$sw=1;
...
5,310
Posted By rugdog
try this - put this code in a file called...
try this

- put this code in a file called script.pl or whatever you like:

$str=shift @ARGV;
while(<>){
$c++ if $sw && /\{/;
$c-- if $sw && /\}/;
if($sw && $c==0){
...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 07:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy