Help for this page

Select Code to Download


  1. or download this
    $line = "==one==two==three";
    ($one,$two,$three,$four)=split (/=+/,$line);
    print "$one\n$two\n$three\n$four";
    
  2. or download this
    $line = "==one==two==three=four";
    ($one,$two,$three,$four)=split (/=+/,($line=~/^=*(.*?)$/,$1)[1]); 
    print "$one\n$two\n$three\n$four";