Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    # access invalid memory.
    my $whats_his_name = get_artist_name_from_cd($johnny_houseburner_cd);
    print STDERR "What was that guy's name again? $whats_his_name?\n";
    
  2. or download this
    $ perl cd_artist.plx 
    Artist::DESTROY called.
    ...
    CD::DESTROY called.
    Bus error
    $
    
  3. or download this
        my $copy = $artist;
        $artist = new_artist("FunThree");
    
  4. or download this
     
     typedef struct CD {
    ...
    +    SvREFCNT_dec(cd->artist_ref);
         Safefree(cd);
     }
    
  5. or download this
    /* Yecch. */
    
    ...
        SvREFCNT_dec(obj->bar->perlobj);
        Safefree(obj);
    }