Help for this page

Select Code to Download


  1. or download this
    sub record{
            ($value, $max, $min)=@_;
    ...
            
    $myrecord=record(100,1000,10);
    print $myrecord->{max};
    
  2. or download this
    $myrecord = record(100, 1000, 10) or die "That's odd";
    
  3. or download this
    return $value >= $min && $value <= $max ?
        {
    ...
        }
    :
        {};