Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: variable constructs that I do not understand

by toolic (Chancellor)
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


Comment on Re: variable constructs that I do not understand
Select or Download Code
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 making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2014-07-12 19:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (240 votes), past polls