JupiterHost.Net wrote:
Gunnar Hjalmarsson wrote:
JupiterHost.Net wrote:
my @files = ();
Which is equivalent to
my @files;
since my() has the side-effect of clearing the declared variable.
Except = (); will help avoid "uninitialized value" warnings no?
How?
use warnings;
my @files = ();
print $files[0];
Result:
Use of uninitialized value in print at ...
You may be mixing it up with assigning the null string to a scalar variable:
my $scalar = '';
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>