Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: TIMTOWTDI Challenge: Zero'ing Out An Array

by johngg (Abbot)
on Sep 27, 2011 at 16:38 UTC ( #928119=note: print w/ replies, xml ) Need Help??


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


Comment on Re: TIMTOWTDI Challenge: Zero'ing Out An Array
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://928119]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2015-07-04 04:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls