This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PERLBREW_BASHRC_VERSION=0.41 | |
[[ -z "$PERLBREW_ROOT" ]] && export PERLBREW_ROOT="$HOME/perl5/perlbrew" | |
[[ -z "$PERLBREW_HOME" ]] && export PERLBREW_HOME="$HOME/.perlbrew" | |
if [[ ! -n "$PERLBREW_SKIP_INIT" ]]; then | |
if [[ -f "$PERLBREW_HOME/init" ]]; then | |
. "$PERLBREW_HOME/init" | |
fi | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub split_string { | |
my ($str, $length) = @_; | |
my $chars = decode( $HttpCharset, $str ); | |
my $first = substr( $chars, 0, $length ); | |
my $last = substr( $chars, $length ); | |
return ( encode( $HttpCharset, $first ), encode( $HttpCharset, $last ) ); | |
} |
NewerOlder