PERL Archive

Great little perl snippet to let you know the number of files and directories in the current directory. Run from the command line.
ls -l |perl -e ‘while(<>){$h{substr($_,0,1)}+=1;} END {foreach(keys %h){print “$_ $h{$_}\n”;}}’

Great PERL PHP Translations

You know when your programming in PERL or PHP and you just can’t think of that corresponding function? Well ease your mind. I have found a list that pairs them off and makes translating, either way, an much easier task. This list is great even if your not trying to translate from one [...]