blnukem
asked on
Change The Value Of A Item In An Array
While looping threw an array how do I change the value of a item?
my $NewNameToAdd = "Distance=584";
my $WordToRemove = "Distance::Required=584";
my @Array ('LeftSegmentHeight=45','D
DESIRED NEW ARRAY:
my @Array ('LeftSegmentHeight=45','D
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
s/::.*?=/=/ for @Array;
if ($_ eq 'Something') {
$_ = 'something_else';
}
}