jake RSS


jakehofman.com

Archive

Mar
16th
Sun
permalink

tip: perl

chr converts ascii code to character

tips  perl 
Apr
5th
Thu
permalink

tip: perl

to compare strings, use eq,ne …

tips  perl 
Mar
9th
Fri
permalink

tip: perl

s///g will count the number of matches of a pattern

tips  perl 
Mar
1st
Thu
permalink

tip: perl

ord converts character to ascii equivalent

tips  perl 
Feb
6th
Tue
permalink

tip: perl

to substitute text in a bunch of files, perl -p -i .bak -e s/old/new/g file1 file2 …

tips  perl 
Oct
3rd
Tue
permalink

tip: perl

/s and /m modifiers can be useful when matching a flattened document w/ many newlines

tips  perl 
Nov
20th
Sat
permalink

tip: perl

when in doubt, perldoc perlvar

tips  perl 
Aug
31st
Tue
permalink

tip: perl

executing perl -MModule::Name will tell you if you have a perl module installed

tips  perl 
Jul
12th
Mon
permalink

tip: perl

install cpan modules via: perl -MCPAN -e ‘install “Module::Name”’

tips  perl