Help for this page

Select Code to Download


  1. or download this
    dog:cat:pig       <== skip, only has three fields
    Amy:Ann           <== skip, only has two fields
    ape:ant:bug:car   <== match this line (it has four fields)
                          but we only need to keep 'ape' and 'ant'
    
  2. or download this
    while (<DATA>) {
        chomp;
    ...
    dog:cat:pig
    Amy:Ann
    ape:ant:bug:car