If someone could please help me.
I can't figure out how to use a variable in a regexp.
Example.
I am writing a script to parse a web log and report on all the hosts in the
log.
However I have a command line option to exclude a domain from the report.
My problem is that I can't figure out how to use the inputed value in a
regexp.
Log Format
host.domain.com
I want to be able to exclude domain.com
I have tried:
while( $exclude_domain !~ /$host/ ) { ... }
Any help is appreciated.
STEFAN KYRYTOW
EDS CANADA
Leveraged Platform Solution Centre
t 416.814.4911
p 416.517.2252
[EMAIL PROTECTED]