|
Posted by David Filmer on June 17, 2008, 6:02 pm
Please log in for more thread options
bdy120602@gmail.com wrote:
> I'm doing a search from the DOS prompt using the Perl search function
Ah, I see your problem right there. Perl doesn't HAVE a search function
(it does have a s/// regular expression, but that doesn't seem to be
related to your question).
> If I use search from the
> Perl command line, meaning after I type "Perl" at the commadn prompt,
> I receive
>
> search/"$"
> Final $ should be $ or $name at - line 1, within string
The message is telling you something useful. Either the dollar-sign
should be escaped ($) or it should precede a variable name ($name). You
surely want to escape it (to treat it as a string-literal) but I don't
know why you're trying to do that division operation.
I suspect you are trying to run some Perl script and pass input. Show
us the relevant part of the script.
--
David Filmer (http://DavidFilmer.com)
The best way to get a good answer is to ask a good question.
|