in reply to Re^2: blocks and using braces around filehandles with print
in thread blocks and using braces around filehandles with print
$$array[0] # Short for ${ $array }[0] ${ $array }[0] # The first element of the array referenced by $array ${ $array[0] } # The scalar referenced by the first element of @array
A third, similar type of curlies is used in interpolation to show where the variable name ends.
"foo$varbar" # Equivalent to "foo" . $varbar "foo${var}bar" # Equivalent to "foo" . $var . "bar"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: blocks and using braces around filehandles with print
by nefigah (Monk) on Mar 16, 2008 at 07:38 UTC |