what different between
@d=("php","perl","asp");
and %d=(1,"me",2,"you");
one is an array (@) and one is an associative array (%), better known as a hash.
perldata - perldoc.perl.org
ok thanks.....can u make asimple script for use an assosiative array....
Code:%d=(1,"me",2,"you"); print "$d{2} ", join('',reverse split(//,q{lrep tuoba hcum wonk t'nod}));
ok thanks for you script.....
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks