in reply to Getting "uninitialized value" that I can't figure out...
That will let you see exactly in which circumstances you are getting undefined values and which values are undefined. Generally it's a good idea to check for definedness of values and either skip trying to print them or else substitute a default value.$ip = "No IP found" unless defined $ip; $duration = "No Duration found" unless defined $duration;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getting "uninitialized value" that I can't figure out...
by dguntner (Novice) on Jul 22, 2007 at 06:05 UTC | |
|
Re^2: Getting "uninitialized value" that I can't figure out...
by apl (Monsignor) on Jul 22, 2007 at 12:46 UTC | |
by dguntner (Novice) on Jul 23, 2007 at 20:41 UTC | |
by apl (Monsignor) on Jul 24, 2007 at 11:40 UTC | |
by dguntner (Novice) on Jul 27, 2007 at 02:31 UTC |