Re: colon(:) in split --- what does it mean ?

2002-06-18 Thread pn
I came across this snippet of code, in somebody's old code. ($cellname = $split_cellname) =~ s/:.*//; I would like to understand the usage of this statement in general, but in particular, i would like to know the significance of of the colon(:) character in the split function. Thanks PN

Re: colon(:) in split --- what does it mean ?

2002-06-18 Thread Prachi Shroff
Its not a split.its a substitute. What this snippet is doing is removing anything that follows a colon and a dot. Prachi. Original Message Follows From: pn [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: colon(:) in split --- what does it mean ? Date: Tue, 18 Jun 2002 08:45

RE: colon(:) in split --- what does it mean ?

2002-06-18 Thread Shishir K. Singh
(//) = and move this value to $cellname -Original Message- From: pn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 18, 2002 11:45 AM To: [EMAIL PROTECTED] Subject: Re: colon(:) in split --- what does it mean ? I came across this snippet of code, in somebody's old code. ($cellname

Re: colon(:) in split --- what does it mean ?

2002-06-18 Thread John W. Krahn
Shishir K. Singh wrote: Probably the record is like $split_cellname = ABCDEFGHIJK:12345678 ($cellname = $split_cellname) =~ s/:.*//; $cellname will now have ABCDEFGHIJK $split_cellname =~ s/:.*// = substitute any character starting with : till the end of the string (s/:.*/),