
ningji
User
Dec 12, 2012, 8:38 AM
Post #1 of 6
(3468 views)
|
perl pack question
|
Can't Post
|
|
say i have a string "0001001101111111", want to convert it into "0001-0011-0111-1111", i can unpack it with "A4" x 4, then use a for loop to join them. but thought there's another quick easy way (shift ?) to avoid for loop. any suggestions ? thanks !
|