Help for this page

Select Code to Download


  1. or download this
    my @captures = 'abcde' =~ m[(.){3}];
    print "@captures";;
    c
    
  2. or download this
    my @captures = 'abcde' =~ m[(.)(.)(.)];;
    print "@captures";;
    a b c
    
  3. or download this
    'abcde' =~ m[(.){3}] and print "$1,$2,$3";;
    Use of uninitialized value in concatenation (.) or string at ...
    ...
    
    'abcde' =~ m[(.)(.)(.)] and print "$1,$2,$3";;
    a,b,c