Gossamer Forum
Home : General : Perl Programming :

Re: [delicia] return two arrays from a sub

Quote Reply
Re: [delicia] return two arrays from a sub In reply to
ok figured a way to do it:
...
my ($wpar,$whandicap) = &get_par_handicaps;
my (@par) = split (/:/, $wpar);
my (@whandicap) = split (/:/, $whandicap);
...



sub get_par_handicaps {
# --------------------------------------------------------
# lookup course and get par for each hole

&switch_to_courses;

my (%course) = &get_record2('1'); # always berkeley hills = #1
return($course{'WPar'},$course{'WHandicap'});

}

Subject Author Views Date
Thread return two arrays from a sub delicia 2020 Jun 30, 2021, 12:38 PM
Post Re: [delicia] return two arrays from a sub
delicia 1990 Jun 30, 2021, 12:49 PM
Post Re: [delicia] return two arrays from a sub
Andy 1967 Jul 6, 2021, 1:00 AM