On Tue, Nov 15, 2011 at 01:42:24PM -0800, Justin Lloyd wrote:
>I tried the following (names changed to protect the innocent and guilty):
>
>class myclass ( $param ) {
>
>��� $myvar = [ "foo", "bar" ]
>
>��� if $param == "special" {
>��� $myvar += [ "blah" ]
>��� }
>
I tried the following (names changed to protect the innocent and guilty):
class myclass ( $param ) {
$myvar = [ "foo", "bar" ]
if $param == "special" {
$myvar += [ "blah" ]
}
}
and got the message "...Cannot append, variable myvar is defined in this
scope...". According to