I have a file that looks like this:
cat output\_title.txt

```
C817491287  Cat: Nor      Sus: something date: 02/26/14
C858151287  Cat: Nor      Sus: really something date: 02/26/14

```

I would like to send an email in HTML format, using parameters from the file, e.g.

```
mine :firstparamter starting with C
sus: ?
date: ?

```

How can I do this?

**EDIT: CODE**

```
open (FILE, 'output_title.txt'); 
while (<FILE>) { 
   chomp; 
   ($chg, $Cat, $category, $sta, $stus, $sus, $open, $open_date) = split(" "); 
   print "Chnge is:$chg\n"; 
}

```

After doncoyote comments :

```
use strict; 
use warnings; 
open (FILE, 'output_title.txt'); 
while (<FILE>) { 
  my ($Cnum,$Cat,$Sus,$Date) = m!(C\d{9})\s+Cat:\s+(\w+)\s+Sus:\s([\w\s]*?)date:\s+([\d/]+)$! ; 
  print "Cnum:$Cnum\t"; 
  print "Caty:$Cat\t"; 
  print "Stus:$Sus\t"; 
  print "opendate:$Date\n"; 
}
close (FILE); exit;  

```