Is one of these preferred over the other?

------------

open(FROMFILE,$filename);

        while(<FROMFILE>){
        push(@everyline, $_);
     }


$longstring = join("",@everyline);
@oldentries = split(/<!--NEWENTRY-->/,$longstring);


---OR---


open(FROMFILE,$filename);

    while (<FROMFILE>){
   $longstring .=  $_;
}

@entries = split ('<!--NEWENTRY-->', $longstring);

----------------


Can you write split with // as in:


@entries = split (/<!--NEWENTRY-->/, $longstring);
 
anything between /.../  is like, quoted "" 

Is this correct?


Thanks to all you kind folks, (What a Great List!) 

Dave


*====================================================*
*   Cora Connection Your West African Music Source   *  
*   http://www.coraconnection.com/                   *  
*   Resources, Recordings, Instruments & More!       *
*====================================================*

Reply via email to