Help for this page

Select Code to Download


  1. or download this
    sub unroll {
        my @x = $_[0] =~ /(?:^|@)((?:##|#@|[^#@])*)/g;
    ...
            $_ =~ s/#@/@/g;
        } @x
    }
    
  2. or download this
    unroll("#@##@###@####@#####@")
    
  3. or download this
        '@#',
        '#@##',
        '##@',
    
  4. or download this
    unroll("@@#@##@###@####@#####@")
    
  5. or download this
        '',
        '',
        '@#',
        '#@##',
        '##@'
    
  6. or download this
    sub my_escape {
        my $x = shift;
    ...
    sub my_join {
        join('@',@_)
    }
    
  7. or download this
    my_join(map{my_escape($_)}('','','@#','#@##','##@',))
    
  8. or download this
    '@@#@##@###@####@#####@'