Re: subsrting question

2002-05-24 Thread drieux
On Friday, May 24, 2002, at 07:44 , Lance Prais wrote: > One more question, how can I make it that it is not case sensitive when > find > something out of a text doc? [..] > next unless(/$target/); next unless(/$target/i); perldoc perlre your f

RE: subsrting question

2002-05-24 Thread Lance Prais
One more question, how can I make it that it is not case sensitive when find something out of a text doc? Thanks Lance -Original Message- From: drieux [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 4:58 PM To: Lance Prais Cc: begin begin Subject: Re: subsrting question On

Re: subsrting question

2002-05-23 Thread John W. Krahn
Lance Prais wrote: > > Well I am have finally got the code to recognized the right substring but > not the issue is my if statement. Could someone see what I am doing > wrong,please. > > For example I ran the script and got the following output: > > E:\sea621\siebsrvr\BIN\perl\bin>perl emailmg

Re: subsrting question

2002-05-23 Thread drieux
On Thursday, May 23, 2002, at 02:29 , Lance Prais wrote: [..] > For example I ran the script and got the following output: > > E:\sea621\siebsrvr\BIN\perl\bin>perl emailmgr.pl > Successfully Completed Email Manager Working Sleeping for 10 [..] > else > { > print "Successfully Completed Emai

RE: subsrting question

2002-05-23 Thread Lance Prais
print "Successfully Completed Email Manager Working"; print substr($line, 105, 16); } -Original Message- From: John W. Krahn [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 4:17 PM To: [EMAIL PROTECTED] Subject: Re: subsrting question Lance Prais wrote: >

Re: subsrting question

2002-05-23 Thread John W. Krahn
Lance Prais wrote: > > I am trying to use the substr() to search a text doc. The starting place > is 100. If you want to _search_ for a string you should be using index(), rindex() or a regular expression. > I am trying to test to see if "Sleeping for 10" is there. > > This is the code I

Re: subsrting question

2002-05-23 Thread drieux
On Thursday, May 23, 2002, at 12:04 , Lance Prais wrote: > I am trying to use the substr() to search a text doc. The starting place > is 100. > > I am trying to test to see if "Sleeping for 10" is there. > > This is the code I am trying to use substr($line 100,16) but is only > returning "

RE: subsrting question

2002-05-23 Thread Beau E. Cox
-Original Message- From: Lance Prais [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 9:05 AM To: Perl Subject: subsrting question I am trying to use the substr() to search a text doc. The starting place is 100. I am trying to test to see if "Sleeping for 10" is

subsrting question

2002-05-23 Thread Lance Prais
I am trying to use the substr() to search a text doc. The starting place is 100. I am trying to test to see if "Sleeping for 10" is there. This is the code I am trying to use substr($line 100,16) but is only returning "Sleeping f" What could I be doing wrong? Thank you in advance, Lanc