@words = map split, @phrases;
Map is such a nice function to keep in mind for saving time.
PACK:
Good old binary to decimal for all you CS monkeys.
sub bin2dec {
unpack("N", pack("B32", substr("0" x 32 . shift, -32)));
}
GREP:
Weeding out comments, as taken from perldoc -f grep
@foo = grep(!/^#/, @bar);
What are you favorite overlooked functions? Anyone have any interesting and innovative uses of the map function?
Nice generalization of map (Score:1)
Algorithm::LoopsRe:Nice generalization of map (Score:1)
My latest fun use of map: DBI to XML (Score:1)
Re:My latest fun use of map: DBI to XML (Score:1)