>>>>> "R" == Ruud <[email protected]> writes:
R> Grant wrote:
>> I have a line in a script that lowercases each US state regardless of
>> what case the letters are in:
>>
>> lc($state);
>>
>> I just saw an error like this:
>>
>> Safe: syntax error at (eval 1806) line 1, near "lc(or"
>>> lc(or)
>>
>> Which makes me think lc(or) might have some type of special meaning
>> that I need to escape. Does it, and if so, how can I escape it?
R> Think about: lc("or")
my question is why is the OP doing an lc() on a fixed string? and which
is already lower case! someone mentioned a possible eval but that still
makes little sense as it would seem to need to generate that code and
hardwiring a statename as the arg is odd. me thinks we need to see more
code to really get to the reason for this.
uri
--
Uri Guttman ------ [email protected] -------- http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/