in reply to Perl variable find replace

I used something like this as a base:
perl -pi -w -e 's/find/replace/g' 'find ./ -name *'
I am only worried about the () for the functions, the [], the closing php statement and the variables. Thanks for the help.