Help for this page

Select Code to Download


  1. or download this
    $string = "(1,2,3,<4,5,6>),more";
    my @line = split(/,(?![\w,]+[>)])/, $string);
    
    print Dumper(\@line);
    
  2. or download this
    $VAR1 = [
              '(1',
    ...
              '<4,5,6>)',
              'more'
            ];