I have a uninitialized variabe $tmp. How can I check if the variable is initialized are not.I want to catech the warning without suppressing it using no warnings qw( uninitialized ). Please tell me how can I do it.
Code:
my $tmp; my $var; $var = "raghu"; if ( $tmp eq "" ) { if ($tmp ne $var) { print " XYZ \n"; }