in reply to Re: whats wrong with this code?
in thread whats wrong with this code?

Thanks for the answer. But

 so first number will always be 2

Why is that so? Shift destroys the array for good. Isnt it?

Replies are listed 'Best First'.
Re^3: whats wrong with this code?
by Discipulus (Canon) on Jan 18, 2017 at 11:40 UTC
    Sorry perhaps i've not noticed your first print "@array\n"; statement (or you have added it? ;=)

    L*

    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.