Help for this page

Select Code to Download


  1. or download this
    A1=<m,n>:<p,q>:<s,t>...go on
    
  2. or download this
    my $string = "<1,2>:<5,7>:<3,0>";
    my @x = split /\s*[,:]\s*/, $string;
    print "Extraction = @x\n";
    print "1st element = $x[0]";
    
  3. or download this
    my @a = $string =~ m[\s*<\s*(\d+)\s*,\s*(\d+)\s*>\s*]g;
    
  4. or download this
    my @a = $string =~ m/(\d+)/ag; #compilation error : couldn't recognise
    + what is 'a'