Help for this page

Select Code to Download


  1. or download this
    # read the whole file at once
    # XXX: updated (thanks, jmcnamara and VSarkiss)
    { local $/; $file = <IN>; }
    @titles = $file =~ /_\[\d]([^_]*)/g;
    
  2. or download this
    # read more lines as needed
    while (<IN>) {
      if (/_\[\d]([^_]*)_/) {
    ...
        }
      }
    }