Help for this page

Select Code to Download


  1. or download this
    my $a = '12345';
    while($a =~ s/(.)(.)//) {
        my ($b,$c) = ($1,$2);
        print "$b - $c\n";
    }
    
  2. or download this
    while($a =~ /(.)(.)/g){
        my ($b,$c) = ($1,$2);
        print "$b - $c\n";
    }