[Omaha.pm] Perl 6 //

Jay Hannah jhannah at omnihotels.com
Fri Oct 28 10:24:01 PDT 2005


Perl 6's // operator sure would be handy to have... Instead of 

  my $store_RatesAvail = 1;
  if (defined $args{store_RatesAvail}) {
     $store_RatesAvail = $args{store_RatesAvail}; 
  }

I could have typed

  my $store_RatesAvail = $args{store_RatesAvail} // 1;

j


More information about the Omaha-pm mailing list