in reply to Errors in some perl modules
You can see that $var2 has not been set to anything. In Perl that is not an error, since an undefined value becomes a blank string in string context, but it is a pointer to sloppy coding or a mistake - hence why you get the warning when perl warnings are turned on.my $var1; my $var2; $var1 = "Something"; print $var1 . $var2;
Update: Original had a typo where I said $var1 instead of $var2. Thanks to AnomalousMonk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Errors in some perl modules
by MidLifeXis (Monsignor) on May 29, 2009 at 15:10 UTC | |
|
Re^2: Errors in some perl modules
by ikegami (Patriarch) on May 29, 2009 at 17:42 UTC | |
by shmem (Chancellor) on May 29, 2009 at 17:52 UTC |