Urk. How to (try to) burn 4 gigabytes:
$number &= 0x0xFFFFFFFF;
Candidate for Most Lethal Typo award. Note: untested
Update: OK so I tested it and it doesn't compile. Award rescinded.
| [reply] [Watch: Dir/Any] [d/l] |
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 | [reply] [Watch: Dir/Any] [d/l] [select] |