in reply to Re: Fastest way to test membership in a constant set (don't use a hash)
in thread Fastest way to test membership in a constant set
When I need to join and have the delimeter also at the beginning or ending or both, I use empty strings:my $set = $delim . join($delim, keys %set) . $delim;
Just another way to do it.my $set = join( $delim, "", keys %set, "" );
|
|---|