What is meant by a 'pack' in perl?

Showing Answers 1 - 2 of 2 Answers

uday

  • Jun 8th, 2006
 

Hi folks!

Pack Converts a list into a binary representation

Takes an array or list of values and packs it into a binary structure, returning the string containing the structure

Hope that kills the problem !!

 

Cheers

Uday K

 

 

  Was this answer useful?  Yes

aiyshwarya

  • Nov 21st, 2007
 

Takes a LIST of values and converts it into a string using the rules given by the TEMPLATE. The resulting string is the con-catenation of the converted values. Typically, each converted value looks like its machine-level representation. For example, on 32-bit machines a converted integer may be represented by a sequence of 4 bytes.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.