Perl programming on MPE/iX - April 2002
Solution Symposium Page 8April 4, 2002
value constructors
• scalar values
• $abc = 12345;
• $abc = 12345.67;
• $abc = 0xffff; # hexadecimal
• $abc = 0377; # octal
• $abc = 'a simple string';
• $abc = "a string with a newline\n";
• list values
• @abc = ("cat", "dog", $def);
• ($dev, $ino, undef, undef, $uid, $gid) = stat($file);
• hash values
• $abc{'December'} = 12;
• $month = $abc{'December'};