Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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...


Comment on Re: TIMTOWTDI Challenge: Zero'ing Out An Array
Download Code
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2014-09-01 14:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (13 votes), past polls