in reply to locating specific function calls

^C Is this then a 'cheapo' parse?

^I on *NIX you can grep for the subroutine identifier, or on Windows command line prompt, something like:

type *.pl | perl -e 'print grep /\b__x\b/, <>;'
__________________________________________________________________________________

^M Free your mind!

Key to hats: ^I=white ^B=black ^P=yellow ^E=red ^C=green ^M=blue - see Moron's scratchpad for fuller explanation.

Replies are listed 'Best First'.
Re^2: locating specific function calls
by markov (Scribe) on Apr 11, 2007 at 15:41 UTC
    Yes, that is about what xgettext is doing to create a lexicon which needs to be translated into all languages. I would really love to build this lexicon without that trick.
Re^2: locating specific function calls
by naikonta (Curate) on Apr 11, 2007 at 21:09 UTC
    You need double quote in Windows. But doesn't this work?
    perl -e "print grep /\b__x\b/, <>;" *.pl