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
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
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
> 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 = (
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