Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: variable in variables

by eyepopslikeamosquito (Chancellor)
on Apr 25, 2013 at 20:52 UTC ( #1030733=note: print w/replies, xml ) Need Help??


in reply to Re^2: variable in variables
in thread variable in variables

how do I do the worksheets writes outside of a for loop?
Old:
$NAME = "BOB"; $worksheet_$NAME->write('A2', "$NAME is here");
New:
$NAME = "BOB"; $worksheets{$NAME}->write('A2', "$NAME is here");

BTW, as for why symbolic references should be avoided, see the classic three part series by MJD: part 1 and part 2 and part 3.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1030733]
help
Chatterbox?
[karlgoethebier]: had his first oysters this year for lunch - with some really white wine. Great
[karlgoethebier]: choroba: this drink makes blind...
[erix]: handy, no blindfold needed

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2017-09-25 13:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (280 votes). Check out past polls.

    Notices?