Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Corrupt Data?

by friedo (Prior)
on Jul 14, 2008 at 20:36 UTC ( #697564=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Corrupt Data?
in thread Corrupt Data?

But he is accessing it positionally (with the for loop) while pushing onto it and shifting it at the same time. That means he's going to end up running his transformation on output data, plus throwing away data that should have been transformed, etc.


Comment on Re^3: Corrupt Data?
Re^4: Corrupt Data?
by ikegami (Pope) on Jul 14, 2008 at 20:49 UTC
    Yes, but the problem is that how he's accessing the array. If he had been using $array[0] instead of $array[$j], he would have been fine (aside other issues such as variable reuse).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://697564]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2014-09-02 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (29 votes), past polls