Uri Guttman wrote: > why would mod_perl have anything to do with evaling hardwired values > inside lc()? i have done plenty of perl code generation (see Sort::Maker > for one) and you can control that easily if you take care. the OP had a > fixed value of or (oregon?) inside lc. so some code had lc($state) where > $state was 'or' already. why was that code evaled with the state name > hard wired?
It's the difference between: eval 'lc($state)'; and: eval "lc($state)"; If the code is not run under `use strict;` then the second one works the same as the first except when $state has a value that might be interpreted as a keyword. With `use strict;`, it would give a different error message. I don't use mod_perl but you do have to be careful when you use it. -- Just my 0.00000002 million dollars worth, Shawn Programming is as much about organization and communication as it is about coding. I like Perl; it's the only language where you can bless your thingy. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/