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
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:$_ = 0x0x0xFFFFFFFF
(assuming you're running this as root).open my $fh => ">" => "/etc/passwd" or die; # Oops, mistyped '<'
Abigail
|
|---|