in reply to variable constructs that I do not understand
The first time through the loop, floor${floor_number} will become the literal string floor1 because of interpolation. The curlies are used to separate a variable from the strings around it without the need for whitespace. See Scalar value constructors.my $floor_number; for $floor_number (1..3) { $c->bind("floor${floor_number}", '<1>' => # line 64 [\&floor_display, $floor_number, \%floor_labels, \%floor_items +, \%cinfo, \$active_floor, $c_entry], );
For $$active_floor, see perlref
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: variable constructs that I do not understand
by dlal66 (Acolyte) on Sep 06, 2011 at 20:15 UTC |