On Mon, 19 Jan 2015 15:57:35 +0000
Andrew Solomon <and...@geekuni.com> wrote:

> On Mon, Jan 19, 2015 at 2:50 PM, Mike Martin <m...@redtux.org.uk>
> wrote:
> > The lookup hash is like this
> > %clean=(
> > Heating    Engineer =>  (?:Heating.*?Engineer)\b.*?
> > HGV  
> > Driver=>(?=\A(?:(?!tech|mech).)*$)(?:HGV|LGV|Class.?1|Class.?2).?(?:1|2|3|)(?:.+Driver|).*?
> >   
> > HGV Mechanic=>
> > (?:(?:HGV|LGV|Lorry).+(?:Mech?anics?|technicians?))\b.*? Highway
> > Engineer=> (?:(?:Highway.?) (?:Engineer.?))\b.*? Highway Technician
> > => (?:Highway.?) (?:Technician.?)\b.*? )
> >

Please tell me that this is _not_ in a text file.

The idea of placing configuration options in a file was for compiled
programs. Since the end user may not have the source, being able to
change the configurations via a text file is a good method.

But since this has regular expressions, it can only be changed by a
programmer, which means, it should be in a Perl module.


-- 
Don't stop where the ink does.
        Shawn

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to