Professional Web Applications Themes

Array - how to access and display?? - PERL Beginners

Hi! This is new to me and I do not know how to access the value '0.46' in the following array: history = ( { version => '0.46', } ); Thanks, Jerry...

  1. #1

    Default Array - how to access and display??

    Hi!

    This is new to me and I do not know how to access the value '0.46' in the
    following array:

    history = (
    {
    version => '0.46',
    }
    );

    Thanks,

    Jerry

    Jerry Guest

  2. #2

    Default RE: Array - how to access and display??

    This works!!

    print "history $history[ 0 ]{ version }\n";

    Jerry

    -----Original Message-----
    From: Jerry Preston [mailto:com]
    Sent: Wednesday, September 01, 2004 8:33 PM
    To: 'Perl Beginners'
    Subject: Array - how to access and display??


    Hi!

    This is new to me and I do not know how to access the value '0.46' in the
    following array:

    history = (
    {
    version => '0.46',
    }
    );

    Thanks,

    Jerry

    Jerry Guest

  3. #3

    Default RE: Array - how to access and display??

    --As of Wednesday, September 1, 2004 8:45 PM -0500, Jerry Preston is
    alleged to have said:
     

    --As for the rest, it is mine.

    Great! Do you know *why*?

    (Note: You are not only accessing an array...)

    Daniel T. Staal

    ---------------------------------------------------------------
    This email copyright the author. Unless otherwise noted, you
    are expressly allowed to retransmit, quote, or otherwise use
    the contents for non-commercial purposes. This copyright will
    expire 5 years after the author's death, or in 30 years,
    whichever is longer, unless such a period is in excess of
    local copyright law.
    ---------------------------------------------------------------
    Daniel Guest

Similar Threads

  1. How to display CFC array of structures in a Flexdatagrid?
    By blue444 in forum Macromedia Flex General Discussion
    Replies: 1
    Last Post: November 1st, 10:02 PM
  2. Display Array Value based off 2nd array value?
    By Scooby Doobie Doo in forum Coldfusion - Advanced Techniques
    Replies: 1
    Last Post: April 26th, 08:47 PM
  3. Replies: 5
    Last Post: September 17th, 10:20 AM
  4. [PHP] How to store result in array for later display?
    By P Cuce in forum PHP Development
    Replies: 0
    Last Post: September 3rd, 01:31 PM
  5. awk problem : array display not correct
    By erche in forum UNIX Programming
    Replies: 4
    Last Post: August 27th, 03:25 PM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139