[ please cc: me as I am on digest and I may miss a reply]

I have the following snippet of code:

        if($line=~/Connect\s/) {
                print $line; 
                if($1=~/[0-9]/) {
                        print "$1\n";
        }
}

The first if is OK, I get what I need.  The second if though I get this 
when I try to run the script:
Use of uninitialized value in pattern match (m//) at ./conn_time.pl line 19
What I am looking to do is find a substring in $line

I am using warnings,diagnostics and strict as well.  

Thanks
-- 
Steve

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to