in reply to The -w switch on a web application
may give you an "uninitialised value, as $foo may not be defined yet. whereas:print "The string is $foo\n";
should be better - as $foo has been defined.. Referencing into hashes, only to discover that the particular key you're trying to use does not exists is another area that results in a very similar problem :)my $foo; # some code print "The string is $foo\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: The -w switch on a web application
by davorg (Chancellor) on Jan 31, 2003 at 12:13 UTC |