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

Re: How to burn 100 megabytes in one line and still get the wrong answer

by Abigail-II (Bishop)
on May 14, 2004 at 16:36 UTC ( #353415=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: How to burn 100 megabytes in one line and still get the wrong answer
in thread How to burn 100 megabytes in one line and still get the wrong answer

Even if it did compile, it isn't that lethal. In fact, even if you type:

$_ = 0x0x0xFFFFFFFF
perl will try to allocate a large piece of memory, and unless you have the memory for it, the malloc will fail, causing Perl to quickly segfault. And even if you do have the memory, at worst you have a temporary slowdown of your system. Big deal. Far more lethal are mistypings in open:
open my $fh => ">" => "/etc/passwd" or die; # Oops, mistyped '<'
(assuming you're running this as root).

Abigail


Comment on Re: How to burn 100 megabytes in one line and still get the wrong answer
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2014-11-28 06:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (193 votes), past polls