Re: Interpolation of arrays

2005-08-05 Thread Patrick R. Michaud
On Fri, Aug 05, 2005 at 11:46:19AM -0500, [EMAIL PROTECTED] wrote: > While trying to use say for debugging, I ran across an oddity. While I can: > say "[EMAIL PROTECTED]"; > and > say @some_array; > this doesn't work: > say "@some_array"; If you're expecting to see the contents of @some_array,

Re: Interpolation of arrays

2005-08-05 Thread Ingo Blechschmidt
Hi, [EMAIL PROTECTED] wrote: > While trying to use say for debugging, I ran across an oddity. While > I can: > say "[EMAIL PROTECTED]"; > and > say @some_array; > this doesn't work: > say "@some_array"; Pugs is correct here, you need to use [] or {} to interpolate aggregates: say "$sc

Interpolation of arrays

2005-08-05 Thread philcrow
While trying to use say for debugging, I ran across an oddity. While I can: say "[EMAIL PROTECTED]"; and say @some_array; this doesn't work: say "@some_array"; Even stranger: class SomeClass { has $.scalar_attr; has @.array_attr; method trial () { say "$.scalar_attr @.array_att