foreach ([method1 method2 method3]){ $<variable variable> = $self->$_; }
Can this indeed be done? Its not essential, but I reckon it would be a cool bit of code
This node kinda points out I "should" be using a hash and this node also mentions the idea of dynamic variables being a little naughty.
As I'm kinda new to the whole "dynamically created everything" scene I'm eager to find out the pitfalls.
In reply to Variable variable? by Ryszard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |