Help for this page

Select Code to Download


  1. or download this
    sub test {
      my ($date) = @_;
    ...
      /x;
      print "$year-$month-$day\n";
    }
    
  2. or download this
    sub test {
      my ($date) = @_;
    ...
      my ($year, $month, $day) = $date =~ m/(\d+)-(\d+)-(\d+)/;
      print "$year-$month-$day\n";
    }