in reply to Re^2: Using variable contents in new variable name
in thread Using variable contents in new variable name
Your sample line becomes:
$admiss_ref->{name} = $namefield->Text(-width=>30,-height=>1)->pack();
Or if, as seems to be the case, there are a number of these things in an array you could:
$COLUMN_1->Button(, ... -command=>[\&ADMISSION, \%admiss, 1]) ->pack(-side=>'top'); ... sub ADMISSION { my ($admiss_ref, $index) = @_; $admiss_ref->[$index]{name} = ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Using variable contents in new variable name
by antioch (Sexton) on Dec 11, 2006 at 03:41 UTC | |
by chromatic (Archbishop) on Dec 11, 2006 at 03:45 UTC | |
by antioch (Sexton) on Dec 11, 2006 at 03:56 UTC | |
by GrandFather (Saint) on Dec 11, 2006 at 03:59 UTC |