Hi ,

I am stuck with input record separator

I have a file .. say "abc"

***********************************************
AAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAA

BBBBBBBBBBBBBBBB
BBBBBBBBBBBBBBBB
BBBBBBBBBBBBBBBB

CCCCCCCCCCCCCCCC
CCCCCCCCCCCCCCCC

***********************************************

I read the file in @lines.
open(IN, "abc);
@lines = <IN>;

Now I want to split the file into three records (three other lists).

@a = ("AAAAAAAAAAAAAAAA\n",
      "AAAAAAAAAAAAAAAA\n",
      "AAAAAAAAAAAAAAAA\n");

@b and @c similarly should contain the other two records.

I tried to join the whole file and then tried to split it on "\n\n" but could not get 
anything..

Any help is welcome.

Regards
Rajeev

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to