Closed Thread
Results 1 to 5 of 5

Thread: what different

  1. #1
    kiddies is offline Programmer
    Join Date
    May 2009
    Posts
    129
    Rep Power
    0

    what different

    what different between

    @d=("php","perl","asp");

    and %d=(1,"me",2,"you");

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    KevinADC is offline Programmer
    Join Date
    Jan 2007
    Posts
    125
    Rep Power
    0

    Re: what different

    one is an array (@) and one is an associative array (%), better known as a hash.

    perldata - perldoc.perl.org

  4. #3
    kiddies is offline Programmer
    Join Date
    May 2009
    Posts
    129
    Rep Power
    0

    Re: what different

    ok thanks.....can u make asimple script for use an assosiative array....

  5. #4
    KevinADC is offline Programmer
    Join Date
    Jan 2007
    Posts
    125
    Rep Power
    0

    Re: what different

    Code:
    %d=(1,"me",2,"you");
    print "$d{2} ", join('',reverse split(//,q{lrep tuoba hcum wonk t'nod}));

  6. #5
    kiddies is offline Programmer
    Join Date
    May 2009
    Posts
    129
    Rep Power
    0

    Re: what different

    ok thanks for you script.....

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts