RE: Question!! number of line....

2002-01-11 Thread Curtis Poe
--- "WANG, SHIPING [AG/1000]" <[EMAIL PROTECTED]> wrote: > Hi, Question for your code: > > what is the meaning "require 5;" Require with just a version number means that you must be running Perl 5 or better. For example, let's say I was to use the 'our' keyword. That was introduced in 5.6,

RE: Question!! number of line....

2002-01-11 Thread WANG, SHIPING [AG/1000]
Hi, Question for your code: what is the meaning "require 5;" -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, December 28, 2001 3:54 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: Question!! number of line requi

Re: use strict, How to 'globalised' variable within loops. (was => Re: Question!! number of line....)

2001-12-29 Thread Michael R. Wolf
"Leon" <[EMAIL PROTECTED]> writes: [...] > (1)how to make a variable within loops non-lexical as in this eg:- > while (){ > my $count++; # how to globalised this variable? $count++; # NO "my", therefore implicitly global. > }; > > (2)how to make a variable availab

use strict, How to 'globalised' variable within loops. (was => Re: Question!! number of line....)

2001-12-29 Thread Leon
- Original Message - From: "John W. Krahn" <[EMAIL PROTECTED]> > Leon wrote: > > > > - Original Message - > > From: "Mark Mclogan" <[EMAIL PROTECTED]> > > > How I can know in that I number of line finds a word in a

Re: Question!! number of line....

2001-12-29 Thread Simon K. Chan
ed, the loop exited due to the "last" command. So, if the word is in line number 5, $counter will have a value of 5. I hope this helps. Simon ########## --- Mark Mclogan <[EMAIL PROTECTED]> wrote: > > How I can know in that I

Re: Question!! number of line....

2001-12-29 Thread Connie Chan
t $lineNumber[0]; have a nice day =) - Original Message - From: "Mark Mclogan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, December 29, 2001 5:36 AM Subject: Question!! number of line > > How I can know in that I number of line finds a

Re: Question!! number of line....

2001-12-29 Thread Connie Chan
open (FILE, ") { if ($_ eq "apple\n") { $count++ } } close (FILE); you got the result at $count have a nice day =) - Original Message - From: "Mark Mclogan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, December 29, 2001 5:36

Re: Question!! number of line....

2001-12-29 Thread John W. Krahn
Leon wrote: > > - Original Message - > From: "Mark Mclogan" <[EMAIL PROTECTED]> > > How I can know in that I number of line finds a word in a text file?. > > For example, a file "file.txt" contains the following list: > > > > C

Re: Question!! number of line....

2001-12-28 Thread Leon
- Original Message - From: "Mark Mclogan" <[EMAIL PROTECTED]> > How I can know in that I number of line finds a word in a text file?. > For example, a file "file.txt" contains the following list: > > Chocolate > Cake > Cheese > Apple >

RE: Question!! number of line....

2001-12-28 Thread SathishDuraisamy
k Mclogan [mailto:[EMAIL PROTECTED]] Sent: Friday, December 28, 2001 1:37 PM To: [EMAIL PROTECTED] Subject: Question!! number of line How I can know in that I number of line finds a word in a text file?. For example, a file "file.txt" contains the following list: Chocolate Cake

RE: Question!! number of line....

2001-12-28 Thread Bob Showalter
> -Original Message- > From: Mark Mclogan [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 28, 2001 4:37 PM > To: [EMAIL PROTECTED] > Subject: Question!! number of line > > > > How I can know in that I number of line finds a word in a text file?. >

Question!! number of line....

2001-12-28 Thread Mark Mclogan
How I can know in that I number of line finds a word in a text file?. For example, a file "file.txt" contains the following list: Chocolate Cake Cheese Apple orange melon lemon How I can know in that line number is the Apple word? Over

RE: number of line

2001-08-03 Thread Fennelly, Marion [ETHGB]
, Marion. > -Original Message- > From: COLLINEAU Franck FTRD/DMI/TAM > [mailto:[EMAIL PROTECTED]] > Sent: 02 August 2001 12:57 > To: Perl (E-mail) > Subject: number of line > > > Hi! > > I would like to store the number of a line whitch corresponds

number of line

2001-08-02 Thread COLLINEAU Franck FTRD/DMI/TAM
Hi! I would like to store the number of a line whitch corresponds to a string. How can i do ? Thanks FRanck -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]