D
Dirk Einecke
Hi.
I have an array. Now I will add a element on the first index. I do this
like this:
$a_foo = Array.new
$a_foo = $bar.split('/')
$a_foo = $a_foo.reverse
$a_foo << 'something'
$a_foo = $a_foo.reverse
Is there a shorter way to do this?
greetings
Dirk Einecke
I have an array. Now I will add a element on the first index. I do this
like this:
$a_foo = Array.new
$a_foo = $bar.split('/')
$a_foo = $a_foo.reverse
$a_foo << 'something'
$a_foo = $a_foo.reverse
Is there a shorter way to do this?
greetings
Dirk Einecke