Help for this page

Select Code to Download


  1. or download this
    perl -we "sub mem{system qq(tasklist /FI \"PID eq $$\"|findstr perl)};
    + mem();bless {}, qq(A$_) for 1 .. 1000000;mem()"
    
    perl.exe                     29356 Console                    1      6
    +.616 K
    perl.exe                     29356 Console                    1  1.353
    +.656 K
    
  2. or download this
    perl -we 'sub mem{system qq(cat /proc/$$/status | grep ^VmSize)}; mem(
    +);bless {}, qq(A$_) for 1 .. 1000000;mem()'
    
    VmSize:       23768 kB
    VmSize:     1234168 kB
    
  3. or download this
    
    perl -MDevel::Symdump -e "bless {},'notexisting';print Devel::Symdump-
    +>new('noexisting')->as_string"
    ...
    
    unknowns
    
  4. or download this
    use strict;
    use warnings;
    ...
    
    HASH %nonexistent:: = ( AUTOLOAD=>'*nonexistent::AUTOLOAD', )