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
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
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
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)
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
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
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
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
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
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
10 matches
Mail list logo