Perl: Lists
Lists
Lists of scalars consist of comma-separated values enclosed in parentheses
(1,2,3) #list of integers
(1.2, 5.7, -12.5) #list of floats
("fred","barney","wilma") #list of strings
("fred",17.4,20,"barney") #mixed list - strings & numbers
#this might be considered "bad style"
() #an empty list - one with no elements