in reply to substr function

The others have given much better advice but if you download the sources for perl you can see the code you say you want to modify. Hopefully this will convince you that you should listen to the wiser PerlMonks.
perl -ne 'print "$ARGV:$.:$_" if /substr/ .. /^}/' pp.c
The above will extract and print the substr function that is in the perl source file pp.c.

Replies are listed 'Best First'.
Re^2: substr function
by Jim (Curate) on Jan 14, 2011 at 16:55 UTC

    Or click "Read more..." below. :-)