Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -l
    
    ...
    my $string = '<1,22>:<5,7>:<333,0>';
    my @x = split /\D+/, $string;
    print /\d/ ? $_ : 'empty string' for @x;
    
  2. or download this
    empty string
    1
    ...
    7
    333
    0