in reply to unshift single scalar
I do not want "push" that puts it at the bottom of the list. I want to put the single scalar value at the top of the list see example.
# What list looks like before I unshift it 0 "Item 1" 1 "Item 2" After I do the unshift (or whatever command). 0 "Top" 1 "Item 1" 2 "Item 2"
I just feel there has to be a more elegant way of doing this.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: unshift single scalar
by Laurent_R (Canon) on Aug 09, 2014 at 20:33 UTC | |
|
Re^2: unshift single scalar
by LanX (Saint) on Aug 10, 2014 at 02:18 UTC | |
by AppleFritter (Vicar) on Aug 10, 2014 at 09:18 UTC | |
by LanX (Saint) on Aug 10, 2014 at 11:44 UTC | |
|
Re^2: unshift single scalar
by AnomalousMonk (Archbishop) on Aug 10, 2014 at 00:43 UTC |