in reply to TIMTOWTDI Challenge: Zero'ing Out An Array
knoppix@Microknoppix:~$ perl -MData::Dumper -E ' > @arr = qw{ a b c }; > say Data::Dumper->Dumpxs( [ \ @arr ], [ qw{ *arr } ] ); > @arr = @{ [] }; > say Data::Dumper->Dumpxs( [ \ @arr ], [ qw{ *arr } ] );' @arr = ( 'a', 'b', 'c' ); @arr = (); knoppix@Microknoppix:~$
But why you'd want to ...
Cheers,
JohnGG
|
---|
In Section
Seekers of Perl Wisdom