On Mon, 2006-08-05 at 08:35 -0700, Xuning Wang wrote: > Thanks for reply. The question is easily solvable if > it is in the same file as the perl script. You can use > single quotes or backslash to modify the string. > > But as I stated in the message, the "$1.12" was in a > text file along with other things, say you have a > sentence like this in a file: Apple $1.12. You can't > modify the file itself. So it's hard to utilize "\" or > use single quotes because you have to first read the > sentence from a file.
The code, as you gave us, works. The problem lies somewhere else in your program. -- __END__ Just my 0.00000002 million dollars worth, --- Shawn "For the things we have to learn before we can do them, we learn by doing them." Aristotle * Perl tutorials at http://perlmonks.org/?node=Tutorials * A searchable perldoc is at http://perldoc.perl.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>