Skip to content

Instantly share code, notes, and snippets.

View danhhuynh25029's full-sized avatar
🎯
Focusing

Danh Huynh danhhuynh25029

🎯
Focusing
View GitHub Profile
# Khai báo kiểu dữ liệu scalar
$a = 10;
@animal = ('cat','dog','cow');
# các phần tử trong animal được đánh số từ 0 -> 2
# Để lấy ra giá trị của chúng ta chỉ cần
print $animal[0] # cat nằm ở vị trí 0
print $animal[1] # cat nằm ở vị trí 1
print $animal[2] # cat nằm ở vị trí 2