Query about using split...URGENT

From: uc_sk (kshagun_at_hotmail.com)
Date: 03/30/04

  • Next message: Gunnar Hjalmarsson: "Re: Query about using split...URGENT"
    Date: 29 Mar 2004 23:16:41 -0800
    
    

    Hello All
      I am a newbie to PERL language...If i have a file with data of form

    abcd 4 {1,2,3} 3
    lmn- 3 {12,18,19,22} 4

    then i can read them as...
       ($list $listTotal $set $noElements) = split / /

    But if i have a dataset of the form:

    abcd 4 {1,2,3} 3
    >{1,2}
    >{3}

    lmn- 3 {12,18,19,22} 4
    >{12}
    >{18,19}
    >{19,22}

    i.e. I have more than two kinds of delimiters, then how should i read it.
     
    Please, help...I am unable to go ahead with my work because i am stuck here.
    Any kind of input will be appreciated. Thanks a lot in advance....

    ~uc_sk


  • Next message: Gunnar Hjalmarsson: "Re: Query about using split...URGENT"

    Relevant Pages