Leser: 26
1 2
$found |= ("Wert" eq @record) foreach (0..@record); push @{ $record, "Wert" if $found;
1 2 3 4
use List::Util qw( first ); if ( ! first { $_ eq 'Wert' } @records ) { push @records, 'Wert'; }
push @record, "Wert" unless "Wert" ~~ @record;
use 5.10.0;
use feature ':5.10';