in reply to Re: Removing a string-element from an array of strings
in thread Removing a string-element from an array of strings
Here is what I am after:
Find the value of choice in the array "@history", remove it, and cat it to the end of the array.@history = ( "Cache::SizeAwareMemoryCache(3)" , "dhcp-options(5)" , "B +N_add_word(3)" , "audit-packages(8)" ) $choice = "dhcp-options(5)"
I found an example that works on an array with the form @array = ( "aaaa" , "bbbb" , "cccc" , "dddd" ), but it refuses to work for my @history array ( the parens in the string(s) ? ) Notice all the elements are in char-string format -- thats that I indended to say. Since the first element contains "::", will that be of any consequence?
Sorry for the confusion
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Removing a string-element from an array of strings
by AnomalousMonk (Archbishop) on Jul 26, 2020 at 17:58 UTC | |
|
Re^3: Removing a string-element from an array of strings
by choroba (Cardinal) on Jul 27, 2020 at 14:28 UTC | |
|
Re^3: Removing a string-element from an array of strings
by LanX (Saint) on Jul 26, 2020 at 17:30 UTC | |
|
Re^3: Removing a string-element from an array of strings
by Cristoforo (Curate) on Jul 26, 2020 at 18:55 UTC | |
by AnomalousMonk (Archbishop) on Jul 26, 2020 at 21:35 UTC | |
|
Re^3: Removing a string-element from an array of strings
by AnomalousMonk (Archbishop) on Jul 26, 2020 at 21:30 UTC | |
|
Re^3: Removing a string-element from an array of strings
by kcott (Archbishop) on Jul 28, 2020 at 04:37 UTC |