Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^3: Spreadsheet::XLSX Cell Access

by Hammer2001 (Novice)
on Sep 13, 2013 at 00:27 UTC ( #1053818=note: print w/replies, xml ) Need Help??

in reply to Re^2: Spreadsheet::XLSX Cell Access
in thread Spreadsheet::XLSX Cell Access

Runrig et el, thanks for your quick responses. Runrig, how do I declare an array/series of hashes? In your snippet "my %yield;" will only declare a single hash whereas I need 6 of them.

I can testify that

my %pond$_ for "F".."K";

does not work.



PS. Sorry for erroneously starting a new thread.

Replies are listed 'Best First'.
Re^4: Spreadsheet::XLSX Cell Access
by Laurent_R (Abbot) on Sep 13, 2013 at 06:18 UTC

    An array of hashes is declared as a simple array:

    my @pond;

    Then to use it, one possible way is this:

    $pond[$i]{$_} = 'foo';

    But from what you have shown, you only need a single hash as follows:

    $yield{$_} = 'bar';

    Read the link that has been provided to you in an earler post.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1053818]
Discipulus de gustibus non disputandum
[LanX]: tasty bus ? ; -p

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2017-04-28 11:30 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (521 votes). Check out past polls.