Keep It Simple, Stupid | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hmm, it seems to me like it would be simpler to use a hash. In your loop, try:
i believe that the problem that you are having now is because you are pushing a reference to an array onto an array. The expression $chunk$number (imagine square brackets there) doesn't really mean anything in the context of how you created @chunk, see? well, i hope my ramblings helped somewhat, good luck. -malloc Update: Wow, these guys are fast. The two above posters explained things much more clearly, and we all got so caught up in the nonsensical array references that we missed your actual problem, which wog picked out nicely below, file clobbering. However, it should be okay to clobber the file in this case, since you are going to be rewriting the whole thing from your data structure, with the deleted entries removed, right? In reply to Re: writing blank array to file?
by malloc
|
|