Hello LRMK, At 11:51 PM 11/5/2002 +0600, LRMK wrote: >#!/usr/bin/perl -w >my $a; >if ($a eq 'fff'){ >} >above line gives the error Use of uninitialized value in string eq >at t.pl line 6. > >but when -w not used in top line it works perfect >what the -w really does
You've created $a but not set it to any value. From 'perldoc perlrun': -w prints warnings about dubious constructs, such as variable names that are mentioned only once and scalar variables that are used before being set, redefined subroutines, references to undefined ... try changing my $a; to my $a=""; Regards, - Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]