Geetha Weerasooriya wrote:
 
: When I turn on the " use warnings " it gives the warning '
: Use  of uninitialized value in numeric ne(!=) at .....
: line 37, <FILE> line..
: 
: Here line 37 is" if (@line != ()) {"


    In this case, perl will use the scalar value of @line,
which is a count of its elements.

    # Try this:

if ( @line != 0 ) {

    # Or this:

if ( @line ) {

HTH,

Charles K. Clarkson
-- 
Mobile Homes Specialist
Free Market Advocate
Web Programmer

254 968-8328

Don't tread on my bandwidth. Trim your posts.


-- 
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