Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    
    $_ = '1,2,3,4,5';
    print /(,?\d)+/;
    
  2. or download this
    ,5
    
  3. or download this
    use strict;
    use warnings;
    
    ...
    foreach (@matches) {
            print "  $_\n";
    }