Help for this page

Select Code to Download


  1. or download this
    bless { @_ }, $class;
    
  2. or download this
    my %hash = @_;
    bless(\%hash, $selfObjRef);
    
  3. or download this
    bless({@_[1..$#_]}, $_[0]);
    
  4. or download this
    my %phrases = (
     "phrase 1" => Qty->new(
    ...
       qty        =>1
     )
    );
    
  5. or download this
    print $phrases{'phrase 2'}->{'qtySum'};
    print $phrases{'phrase 1'}->{'qtyCont'};
    print $phrases{'phrase 3'}->{'qty'};
    
  6. or download this
    my %phrases = (
     'phrase 1'=>{
    ...
       qtyTotal=>sub{return &qtyTotal('phrase 3', @_);}
     }
    );