Both of them are used to declare local variables. The variables declared with 'my' can live only within the block and cannot gets its visibility inherited [...]
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 [...]
CHOP
'chop' function only removes the last character completely 'from the scalar, where as 'chomp' function only removes the last character if it is a [...]
Use: 1. the method is used only for modules (only to include .pm type file) 2. the included object are verified at the time of compilation. 3. No Need to give [...]
Answer : There is a 'ref' function .Perl provides the ref() function so that you can check the reference type before dereferencing a referenceThe ref() [...]