Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -ln
    
    ...
        }
    
    __END__
    
  2. or download this
    echo pre_[aa,01:03,bb]_[x,y]_post | ./xstr.pl
    pre_aa_x_post
    ...
    pre_03_y_post
    pre_bb_x_post
    pre_bb_y_post
    
  3. or download this
    sub expand {
        doit split 
    ...
          (.*?)
          (?<!\\)\]/x, shift, -1;
    }
    
  4. or download this
    sub expand {
        doit split /<SOME_REGEX>/, shift, -1;
    }