[wellylug] If you are stuck for ideas for a lightning talk session

Douglas Bagnall douglas at halo.gen.nz
Thu Feb 13 10:30:29 NZDT 2014


And if you don't like pipes:

python -c'import random,apt;print random.choice(apt.cache.Cache().keys())'

It even ends up shorter than the original perl:

> dpkg --get-selections | perl -E '@p = map { s/\s.*//r } <>; say $p[rand(+ at p)]'

Douglas



More information about the wellylug mailing list