Re: Is lc(or) something special?

2010-01-28 Thread Dr.Ruud
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

Warning: Use of uninitialized value

2010-01-28 Thread Bob Williams
Hi, I am trying to split the lines in a file into two halves (at the first space) each half going into an array. The code I have written is below. The print command is there to test that things worked correctly, but it only gives an error for each instance of the print command... Use of

AW: Warning: Use of uninitialized value

2010-01-28 Thread Thomas Bätzler
Bob Williams n...@spam.barrowhillfarm.org.uk asked: I am trying to split the lines in a file into two halves (at the first space) each half going into an array. The code I have written is below. ---Code--- #!/usr/bin/perl use warnings; #use strict; use strict; # unless you know what you're

Re: Is lc(or) something special?

2010-01-28 Thread Uri Guttman
R == Ruud rvtol+use...@isolution.nl 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)

Re: Is lc(or) something special?

2010-01-28 Thread Shawn H Corey
Uri Guttman wrote: 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

Re: Is lc(or) something special?

2010-01-28 Thread Uri Guttman
SHC == Shawn H Corey shawnhco...@gmail.com writes: SHC Uri Guttman wrote: 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

Re: Warning: Use of uninitialized value

2010-01-28 Thread John W. Krahn
Bob Williams wrote: Hi, Hello, I am trying to split the lines in a file into two halves (at the first space) each half going into an array. The code I have written is below. The print command is there to test that things worked correctly, but it only gives an error for each instance of the

Re: Is lc(or) something special?

2010-01-28 Thread Shawn H Corey
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

Re: Is lc(or) something special?

2010-01-28 Thread Uri Guttman
SHC == Shawn H Corey shawnhco...@gmail.com writes: SHC 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

Re: Warning: Use of uninitialized value

2010-01-28 Thread Bob Williams
John W. Krahn wrote: Bob Williams wrote: Hi, Hello, I am trying to split the lines in a file into two halves (at the first space) each half going into an array. The code I have written is below. The print command is there to test that things worked correctly, but it only gives an error