in reply to Re: Error using Data::Alias (how to allocate array w/o filling it in?) and help avoiding 'constant' len?
in thread Error using Data::Alias (how to allocate array w/o filling it in?) and help avoiding 'constant' len?
Came close to forgetting the square brackets until I was about to explain what I did here! Then I saw,, oops, I'm pushing 7 successive values onto @local_vars, instead of pushing 1 array containing them! Doh! But try to explain what I did, and caught that right off!push @{this-{local_vars}], [my ($open_tag, $tag_print, $cur_class, $cur_id, $defines_class, $defines_id, $tag_output )];
Good illustration of why sometimes I snag some non-CS literate friend into helping look for some programing problem while I explain it to them in a way they can understand it -- meaning I really have to be very explicit as to what is going on -- maybe even with diagrams. Embarrassingly amazing how many times I catch my own bugs that way.
I try to explain to them, that they really are performing a valuable function -- even if they don't understand everything, because when you explain your code so a non-CS person can understand it, you have to explain every assumption, and the effect of every operator...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Error using Data::Alias (how to allocate array w/o filling it in?) and help avoiding 'constant' len?
by ikegami (Patriarch) on Sep 23, 2010 at 18:24 UTC |