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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2017-02-25 09:37 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (365 votes). Check out past polls.