mark McWilliams <mailto:[EMAIL PROTECTED]> wrote:

mark McWilliams <[EMAIL PROTECTED]> wrote:

: I do not know how to get rid of this error
: Use of uninitialized value in pattern match (m//)
:
: Use of uninitialized value in pattern match (m//) at
: ./2new.pl line 97, <> line 22328.
:
: I have set both %modem & $Ascend_Xmit_Rate with
: %modem = ();

    %modem has nothing in it, but you are comparing a value
as if it does have a defined value. In this expression $modem{0}
must have a value to avoid the error.

: if  ( defined $modem{$Ascend_Xmit_Rate} =~ /\d/)

    Try this or define $modem{0}.

if  ( exists $modem{$Ascend_Xmit_Rate}
        and    $modem{$Ascend_Xmit_Rate} =~ /\d/ )


HTH,

Charles K. Clarkson
-- 
Mobile Homes Specialist
254 968-8328


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to