Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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]
[Eily]: do you pronunce that /xju:mən/ then ?
[Eily]: that's not what I'd call a silent h :)
[LanX]: see soundfile https://en. wiki/human# Pronunciation
[Your Mother]: Just Another Perl 'Acker.
[LanX]: I pronounce it 'juːmən'
[Your Mother]: Hey, let's not bring antisemitism into the conversation.
[LanX]: for centuries posh English speakers tried to approach French, that's where all the trouble starts
[Eily]: Just another Perl coeurs
[Eily]: (perl with hearts, 'Acker with a French accent is pronunced like coeurs)
[LanX]: IMHO 'ju' for 'u' happens in English where they can't pronounce the French u (or German )

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2017-03-27 17:11 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (320 votes). Check out past polls.