Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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: floor.pl
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2016-09-26 03:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (475 votes). Check out past polls.