Perl programming on MPE/iX - February 2001
February 9, 2001
Solution Symposium
Page 6
hp e3000
perl
programming
value constructors
• scalar values
• $abc = 12345;
• $abc = 12345.67;
• $abc = 0xffff; # hex
• $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'};