On 2011-11-25 10:50, timothy adigun wrote:
Mike D<ekimduna...@gmail.com> wrote:
my @array = (1,2,3,4);
my $array=[qw(1 2 3 4)];
Another ill advice. There is no need to add a dereferencing level here.
A scalar has no inherent type, a construct like \@data has.
('type' in the Perl sense: scalar, arayref, hashref, etc.)
Why would you want to deprive the compiler of this information?
--
Ruud
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/