Re: manipulating arrays/scalars

2002-06-04 Thread Steven_Massey
Thanks to John W Krahn and Shishir for your replys, need to learn about push -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: manipulating arrays/scalars

2002-06-03 Thread John W. Krahn
Steven Massey wrote: > > Hi any help appreciated... Hello, > I am reading a file consisting of lines with upto 2 sets if data seperated > by : ie > > 13:fred > 12:nancy > lional: > > each line is split into @a1 and @a2, here is my problem - if line does not > have @a2 as in example line 3

RE: manipulating arrays/scalars

2002-06-03 Thread Shishir K. Singh
for @a1; print $_, "\n" for @a2; __END__ ## it prints 13 12 12 fred nancy lional -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 5:25

manipulating arrays/scalars

2002-06-03 Thread Steven_Massey
Hi any help appreciated... I am reading a file consisting of lines with upto 2 sets if data seperated by : ie 13:fred 12:nancy lional: each line is split into @a1 and @a2, here is my problem - if line does not have @a2 as in example line 3 above, I want it to take the value from line 2 ie - 1