Help for this page

Select Code to Download


  1. or download this
    sub _set {
        my $self = shift;
        my ($key, $value);
        while (($key, $value) = splice @_, 0, 2) { $self->{$key} = $value 
    +}
    }
    
  2. or download this
    c:\@Work\Perl\monks>perl -wMstrict -MData::Dump -le
    "sub _set {
    ...
     dd $hr;
    "
    bless({ a => 1, b => 2, c => 3, "y" => 25, z => 26 }, "main")