Re: accessing chars in a string

2009-09-01 Thread Chuck Crisler
ck On Tue, 2009-09-01 at 21:55 -0400, Uri Guttman wrote: > >>>>> "CC" == Chuck Crisler writes: > > CC> How do I access specific character positions in a scalar string? In case > CC> it makes any difference, I specifically want to test the zeroth >

Re: accessing chars in a string

2009-09-01 Thread Chuck Crisler
duh substr($str, 0, 1); On Tue, 2009-09-01 at 20:49 -0400, Chuck Crisler wrote: > How do I access specific character positions in a scalar string? In case > it makes any difference, I specifically want to test the zeroth > character. Something like the following. > > my $str = &q

accessing chars in a string

2009-09-01 Thread Chuck Crisler
How do I access specific character positions in a scalar string? In case it makes any difference, I specifically want to test the zeroth character. Something like the following. my $str = "abc"; if ($str[0] == '#') { do something... } Thank you in advance! Chuck -- To unsubscribe, e-ma

Re: invoking perl from html

2009-07-16 Thread Chuck Crisler
One more piece of info. I am not using a form. I have an example from Apache for that. Chuck On Thu, 2009-07-16 at 20:48 -0400, Chuck Crisler wrote: > This isn't exactly on-topic, but maybe someone can help me with this > problem. I need to execute a Perl script on the server from

invoking perl from html

2009-07-16 Thread Chuck Crisler
This isn't exactly on-topic, but maybe someone can help me with this problem. I need to execute a Perl script on the server from my HTML. I found examples of running a script in the browser and I know how to configure Apache. I just don't know how to invoke a server script. I need the answer, but i