Re: Query on Split

2004-06-12 Thread Randy W. Sims
On 6/12/2004 8:33 AM, Rob Dixon wrote: John W. Krahn wrote: Sudhindra K S wrote: Hi Hello, I have a file with lines as shown below //abc/... - //xyz/... //abc1/... - //xyz1/... Now i want to split the lines at "-" and get the string on the left in one array and the string on the right in another a

Re: Query on Split

2004-06-12 Thread Rob Dixon
John W. Krahn wrote: > > Sudhindra K S wrote: > > > > Hi > > Hello, > > > I have a file with lines as shown below > > > > //abc/... - //xyz/... > > //abc1/... - //xyz1/... > > > > Now i want to split the lines at "-" and get the string on the left in one > > array and the string on the right in ano

Re: Query on Split

2004-06-11 Thread John W. Krahn
Sudhindra K S wrote: > > Hi Hello, > I have a file with lines as shown below > > //abc/... - //xyz/... > //abc1/... - //xyz1/... > > Now i want to split the lines at "-" and get the string on the left in one > array and the string on the right in another array. > > ie: array1 = (//abc, //abc1

Re: Query on Split

2004-06-10 Thread Rob Dixon
> Sudhindra K S wrote: > > I have a file with lines as shown below > > //abc/... - //xyz/... > //abc1/... - //xyz1/... > > Now i want to split the lines at "-" and get the string on the left in one > array and the string on the right in another array. > > ie: array1 = (//abc, //abc1) and array2 = (

Re: Query on Split

2004-06-10 Thread Prasanna Kothari
have a look at Split function: http://www.perldoc.com/perl5.8.4/pod/func/split.html sudhindra k s wrote: Hi I have a file with lines as shown below //abc/... - //xyz/... //abc1/... - //xyz1/... Now i want to split the lines at "-" and get the string on the left in one array and the string on t