Help for this page

Select Code to Download


  1. or download this
    perl -we '$string = qq/9500,9501,fred,,9999/; map { warn qq/Bad entry:
    + $_ in string $string/ } grep ! /^\d{4}$/, split /,/, $string;'
    
  2. or download this
    Bad entry: fred in string 9500,9501,fred,,9999 at -e line 1.
    Bad entry:  in string 9500,9501,fred,,9999 at -e line 1.