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

Re: Is "lc(or)" something special?

2010-01-28 Thread Uri Guttman
> "SHC" == Shawn H Corey 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 a >>

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 lc

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 Uri Guttman
> "SHC" == Shawn H Corey 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 and >>

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 nee

Re: Is "lc(or)" something special?

2010-01-28 Thread Uri Guttman
> "R" == Ruud 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

AW: Warning: Use of uninitialized value

2010-01-28 Thread Thomas Bätzler
Bob Williams 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 doing. > #use diagnostic

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 uninit

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