Gossamer Forum
Home : General : Perl Programming :

remove element in array

Quote Reply
remove element in array
i have a field $players that contains the following:
Code:
delicia~~bevs~~golfer31~~nancy
i'm opening a file and as i go thru the records i'm comparing one field ($playerID) to the list of $players. if $playerID is in the list of $players, i want to remove that playerID from $players. what is the best way to do this? it's not an actual change to $players, so i could use a temporary field or array to hold the remaining players.
Subject Author Views Date
Thread remove element in array delicia 335 Jun 6, 2021, 1:18 PM
Thread Re: [delicia] remove element in array
Andy 328 Jun 7, 2021, 8:50 AM
Post Re: [Andy] remove element in array
delicia 322 Jun 7, 2021, 11:07 AM