Example Nested Tuple

[Solved] Example Nested Tuple | Perl - Code Explorer | yomemimo.com
Question : Example: Nested Tuple

Answered by : samer-saeid

var alphabets = ("A", "B", "C", ("a", "b", "c"))
// access first element
print(alphabets.0) // prints "A"
// access the third element
print(alphabets.3)
// access nested tuple
print(alphabets.3.0) // prints "a"

Source : | Last Update : Thu, 23 Jun 22

Answers related to example nested tuple

Code Explorer Popular Question For Perl