Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: variable constructs that I do not understand

by toolic (Bishop)
on Sep 06, 2011 at 19:02 UTC ( #924449=note: print w/replies, xml ) Need Help??

in reply to variable constructs that I do not understand

You should have posted at least the full line of code, but I think I found what you're referring to at:
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], );
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.

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
    Thank you very much. I know where to start looking...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2016-10-23 21:55 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (302 votes). Check out past polls.