yes, I caught that a bit after I sent it off ! Thanks. > -----Original Message----- > From: Etienne Marcotte [mailto:[EMAIL PROTECTED]] > Sent: Monday, October 22, 2001 1:21 PM > To: Kipp, James > Cc: [EMAIL PROTECTED] > Subject: Re: How to split it? > > > In fact it's for (0..(@list-1)) > > because with from 1 it skipped the first elemt with [0] > > Etienne > > "Kipp, James" wrote: > > > > > > > use strict; > > > > > > $line = "1:2:3:4:5"; > > > @list = split (/:/ ,$line); > > > > > > for (1..@list) { @list[$_] = sprintf(":%d",@list[$_]; } > > > > good call, but you will need to do : > > (1..(@list-1) > > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > >
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]