pear=Mikrotik
peach=Abe
apple=12345
However, the script below is giving me this output:
0=pear;0=Mikrotik
1=peach;1=Abe
apple=12345
Any ideas why?
Code: Select all
{ :local arr {""}; \
:set arr {\
"apple"=12345 ;\
"pear"=[/system identity get name;] ;\
"peach"="Abe" }; \
:put $arr; \
:put [:typeof $arr]; \
:put [:len $arr]; \
:foreach k,v in=$arr do={ \
:put ("$k=$v") ; \
}; \
:put ($arr->"apple"); \
};