We've built a search and replace that allows users to s&r in teamsite, via a workflow that gathers all the information, then calls on an external perl task. This works fine on normal character strings (foo or foo bar), but I'd like it to work for code, too (<img src="foo.gif">).
The problem is, I'm guessing, the quotes - these would need to be escaped out. I'm using Getopt:

td to capture the user's input; how can I make it so that it'll work even if the user enters a string containing quotes?
Thanks in advance!
-maureen