Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: space saving wanted!

by Abigail-II (Bishop)
on Apr 23, 2003 at 09:25 UTC ( [id://252489]=note: print w/replies, xml ) Need Help??


in reply to space saving wanted!

You could use symbolic references (which is not considered "neat") or eval (which also isn't considered "neat"). Or you could use the following untested code:
my @calcs = \my ($calc1, $calc2, $calc3, $calc4); foreach my $calcref (@calcs) { # Use $$calcref to access the $calc variables }

But you are probably better off using an array instead of a list of variables.

Abigail

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://252489]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-03-29 14:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found