Help for this page

Select Code to Download


  1. or download this
    sub foo {
      my @tokens = split /\:\:/, shift;
    ...
      my $function = pop @tokens;
      return ( join( q[::], @tokens), $function );
    }
    
  2. or download this
    sub bar {
      return map({join(q[::], @$_[0 .. $#$_ - 1]), $$_[$#$_];} [split(/::/
    +, shift)]); 
    }
    
  3. or download this
    sub boo {
      my $a = shift;
    ...
          return ($1 || '', $2);
      }
    }