jesuashok has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
diagnostics throws the error only when "$i" is used inside the code without initialising.
Hi monks.
In the above code even after including diagnostics module it doesn't throw any error regarding the un-initialised variable $i. Is there any module available to check un-initialised. This will be useful for me to remove the un-initialised variables from the code.#!/usr/bin/perl use strict; use diagnostics; my $i;
diagnostics throws the error only when "$i" is used inside the code without initialising.
"Keep pouring your ideas"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: finding Un-Initialised variables from the perl code
by Corion (Patriarch) on Nov 03, 2005 at 12:10 UTC | |
Re: finding Un-Initialised variables from the perl code
by rinceWind (Monsignor) on Nov 03, 2005 at 13:57 UTC | |
Re: finding Un-Initialised variables from the perl code
by Perl Mouse (Chaplain) on Nov 03, 2005 at 13:55 UTC | |
Re: finding Un-Initialised variables from the perl code
by pboin (Deacon) on Nov 03, 2005 at 12:50 UTC | |
|
Back to
Seekers of Perl Wisdom