Re[2]: build an array from a pattern match?

2003-01-12 Thread Irina Volkova
"Michael Kelly" <[EMAIL PROTECTED]> wrote > On Sat, Jan 11, 2003 at 02:00:58PM -0800, John W. Krahn wrote: > > Rob Dixon wrote: > > > "Michael Kelly" <[EMAIL PROTECTED]> wrote > > > > # print out all the captured numbers > > > > map{ print "$_\n"; } @numbers; > > > > > > Hi Michael. > > > > > > M

Re: build an array from a pattern match?

2003-01-12 Thread Michael Kelly
On Sat, Jan 11, 2003 at 02:00:58PM -0800, John W. Krahn wrote: > Rob Dixon wrote: > > "Michael Kelly" <[EMAIL PROTECTED]> wrote > > > # print out all the captured numbers > > > map{ print "$_\n"; } @numbers; > > > > Hi Michael. > > > > May I warn against using 'map' in a void context like this? I

Re: build an array from a pattern match?

2003-01-11 Thread John W. Krahn
Rob Dixon wrote: > > "Michael Kelly" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > # print out all the captured numbers > > map{ print "$_\n"; } @numbers; > > Hi Michael. > > May I warn against using 'map' in a void context like this? It'll work, > su

Re: build an array from a pattern match?

2003-01-11 Thread Rob Dixon
"Michael Kelly" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > # print out all the captured numbers > map{ print "$_\n"; } @numbers; Hi Michael. May I warn against using 'map' in a void context like this? It'll work, sure, but you're using it for the side-ef

Re: build an array from a pattern match?

2003-01-11 Thread Michael Kelly
On Fri, Jan 10, 2003 at 10:22:37PM -0500, David Nicely wrote: > Hello, Hi David, > I am a total beginner, so any help or a pointer to an appropriate doc > will be appreciated. > > I am trying to read a file, and find all the lines that look like; > "Finding 111" where "111" could be any number w

build an array from a pattern match?

2003-01-10 Thread David Nicely
Hello, I am a total beginner, so any help or a pointer to an appropriate doc will be appreciated. I am trying to read a file, and find all the lines that look like; "Finding 111" where "111" could be any number with any amount of digits. What I am trying to do now is to assign a variable to th