from your small code sample everything checks out.
I would be inclined to ensure that the parameter is being read in correctly
with no trailing spaces or strange characters.

If you need more help send a bigger code sample for us to peruse.

-----------------------------------------
Craig Moynes
[EMAIL PROTECTED]



                                                                                       
                            
                    "Kyrytow,                                                          
                            
                    Stefan"              To:     "Perl (E-mail)" <[EMAIL PROTECTED]>  
                            
                    <stefan.kyryto       cc:                                           
                            
                    [EMAIL PROTECTED]>           Subject:     regexp Help                      
                            
                                                                                       
                            
                    05/30/01 12:38                                                     
                            
                    PM                                                                 
                            
                                                                                       
                            
                                                                                       
                            



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]





Reply via email to