volume_mute
Starting names with special characters in Perl
publish date: 2022/09/02 12:32:00 GMT+10
volume_muteSome of the problems with implicit declarations can be avoided by requiring names for specific types to begin with particular special characters. In Perl
- Any name that begins with $ is a (1)
, which can store either a string or a numeric value.
- If a name begins with @, it is an (2)
.
- If it begins with a %, it is a (3)
.
Please drag and drop the selected option in the right place or type it instead
hash structure
scalar
array
Correct Answer
(1) scalar
(2) array
(3) hash structure
Reference
Concepts of Programming languages, 10th ed