Hi all,

I have what I'm sure is the simplest but nonetheless most vexing problem, I
just can't figure what's wrong.

I have two perl programs, both web applications. The same line appears in
both, which is:

 

                my $cVar = substr( CGI::param( 'x' ), 0, 1 );

 

sometimes 'x' has a value and so $cVar gets a value, other times no value.
In the first program, a non-value for x is a non-event and everything is
fine.

But in the other program, when there's a non-value for x I get the error
"Use of uninitialized value in substr at . . . ". This error message shows
up in my html output so the user sees the error message. I don't understand
why the error  is being sent in the html stream to the browser from one
program and not the other. Any guidance is greatly appreciated.

Thanks.

-          john

 

John DePasquale

Chief Executive Officer

Paradigm Consulting

49 Dalby Street

Newton, MA  02458

Mobile: 617-610-2424

Fax: 617-600-7326         

  _____  

 

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to