in reply to Re^3: Possible bug with array pointer
in thread Possible bug with array pointer
Thanks. That I actually knew, but in my opinion it's more clear to read when using braces.
And in the real world case where I was hit by this unknown "oddity" the code looked like this, before the change.
foreach my $var (@{$self->get('SAMPLEIDS')}) { $var =~ s/_//g; push(@temp_SAMPLEIDS, $var); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Possible bug with array pointer
by haukex (Archbishop) on Jan 11, 2017 at 14:57 UTC |