Help for this page

Select Code to Download


  1. or download this
    print map {( $_ =~ /^-?\d+$/ ? $_ * 2 : '-' ),"\n"} @array;
    
  2. or download this
    print map {( $_ =~ /^-?(\d*\.)?\d+$/ ? $_ * 2 : '-' ),"\n"} @array;