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
In reply to Re^2: Removing a string-element from an array of strings
by Anonymous Monk
in thread Removing a string-element from an array of strings
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |