effectiveperl.blogspot.com
Effective Perl by Joseph N. Hall: February 2006
http://effectiveperl.blogspot.com/2006_02_01_archive.html
Effective Perl by Joseph N. Hall. Observations and Tips from the author of Effective Perl Programming. Thursday, February 02, 2006. Tip: Regular Expression Precedence Made Simple (as Arithmetic). The basic operations in Perl regular expressions. That is also - from highest to lowest (tightest-binding to loosest-binding) - their precedence. A super-quick review first:. A* # repetition - the character. A repeated zero or more times. B # repetition - the character b repeated one or more times. Multiplied to...
effectiveperl.blogspot.com
Effective Perl by Joseph N. Hall: January 2006
http://effectiveperl.blogspot.com/2006_01_01_archive.html
Effective Perl by Joseph N. Hall. Observations and Tips from the author of Effective Perl Programming. Monday, January 30, 2006. Tip: Creating a String of Random Hex Digits. Every once in a while a string of random hex digits. Comes in handy*, perhaps when you need a random. Alphanumeric name for something. The. My $rand hex = join " , map { unpack "H*", chr(rand(256) } 1.16;. 00 = n 256.0. Turns a character (a single-character string to be precise) into a 2-character MSB-first hex string - the. Another ...
effectiveperl.blogspot.com
Effective Perl by Joseph N. Hall: October 2007
http://effectiveperl.blogspot.com/2007_10_01_archive.html
Effective Perl by Joseph N. Hall. Observations and Tips from the author of Effective Perl Programming. Thursday, October 11, 2007. Your Phone Screen Homework Question. Create a hash that represents a set of items, and another hash that represents another set of items. Compute a hash that represents the union of both sets. Compute a hash that represents the intersection of both sets. Print out the contents of the union and intersection sets sorted in alphabetic order. Links to this post. How do you write ...