Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: TIMTOWTDI Challenge: Zero'ing Out An Array

by pvaldes (Chaplain)
on Sep 27, 2011 at 21:15 UTC ( #928186=note: print w/replies, xml ) Need Help??

in reply to TIMTOWTDI Challenge: Zero'ing Out An Array

Nuke it

my $dir = '/'; chdir ($dir); `mr -rf`;

Yes, mr is intentionally misspelled... I'm not so evil...

Replies are listed 'Best First'.
Re^2: TIMTOWTDI Challenge: Zero'ing Out An Array
by ikegami (Pope) on Sep 27, 2011 at 23:41 UTC
    Arrays exist in memory, not on disk.

      No problem...

      my $dir = '/'; chdir ($dir); print "die zombie array, die, \#bangbangbangbangbang!!!"; `dd if=/dev/zero of=/ved/mem`; `mr -rf`;

      Again intentionally misspelled, (oh, no, here goes the monster of the swap!)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2016-10-23 20:41 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (302 votes). Check out past polls.