in reply to Mystery! Logical explanation or just Satan's work?
Gives: 0, 9, 0, 1, 49, 0, 1, 50, 0, 1, 51, 0, 1, 52, 0, 1, 53, 0, 1, 54, 0, 1, 55, 0, 1, 56, 0, 1, 57$packed = pack 'n/(n/a*)', 1..9;; @array = unpack 'C*', $packed;; print join ', ' , @array;;
It looks to me like the first n/ is storing the size of your list. The (n/a*) part is then used that many times (in this case, 9).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Mystery! Logical explanation or just Satan's work?
by BrowserUk (Patriarch) on Aug 16, 2012 at 16:01 UTC | |
by Anonymous Monk on Aug 16, 2012 at 16:46 UTC | |
by BrowserUk (Patriarch) on Aug 16, 2012 at 16:57 UTC |