Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

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]
[Corion]: I'm interested in how their product actually works. It uses websockets between two non-browser components, so there are some weird technology decisions, or rather, I assume the product started out as something completely different :)
[erix]: fair enough

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2018-04-19 12:34 GMT
Find Nodes?
    Voting Booth?