1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- alias pbi='perlbrew install'
- alias pbl='perlbrew list'
- alias pbo='perlbrew off'
- alias pbs='perlbrew switch'
- alias pbu='perlbrew use'
- alias pd='perldoc'
- alias ple='perl -wlne'
- alias latest-perl='curl -s https://www.perl.org/get.html | perl -wlne '\''if (/perl\-([\d\.]+)\.tar\.gz/) { print $1; exit;}'\'
- newpl () {
-
- [[ -z $EDITOR ]] && EDITOR=vim
-
- [[ -e $1 ]] && print "$1 exists; not modifying.\n" && $EDITOR $1
-
- [[ ! -e $1 ]] && print '#!/usr/bin/perl'"\n"'use strict;'"\n"'use warnings;'\
- "\n\n" > $1 && $EDITOR $1
- }
- pgs() {
- perl -i.orig -pe 's/'"$1"'/'"$2"'/g' "$3"
- }
- prep() {
- perl -nle 'print if /'"$1"'/;' $2
- }
|