Help for this page

Select Code to Download


  1. or download this
    sub distance(:$from, :$to) { $from - $to }
    
    say distance(from => 30, to => 10);
    
  2. or download this
    use 5.36.0;
    sub distance(%args) { $args{from} - $args{to} }
    
    say distance(from => 30, to => 10);