"Sputnik" help  
Sputnik Help
Language Reference - Operators - Operator qwl (Quick Int64 Array)

Operator qwl

The Quick Int64 Array operator.

printr qwl"H\x1122334422334455ello";
// PRINTS
// Array
// (
//     [0] => 72
//     [1] => 1306945775530689886
//     [2] => 108
//     [3] => 108
//     [4] => 111
// )

This is useful for defining an array of 64-bit integers in string format. It can be used to represent a sequence of extremely large numbers which may not fit into a regular string format.

Using a foreach loop

my $array = qwl"He\x1122334422334455ello";
foreach (my $v in $array)
{
   say sprintf("Value char %1^c  dec %1^d hex 0x%1^X", $v);
}
// PRINTS
// Value char H  dec 72 hex 0x48
// Value char e  dec 101 hex 0x65
// Value char ^  dec 590628190 hex 0x2334455E
// Value char l  dec 108 hex 0x6C
// Value char l  dec 108 hex 0x6C
// Value char o  dec 111 hex 0x6F

To see a list of all the operators go here.


Contact
Cheryl (uberfox@hotmail.com)
Homepage
http://ubersoft.org