J
Jeremy
Hey VBScript gurus....
I'm a long time Perl programmer who recently learned VBScript and am
pretty familiar with VBScript, but not enough to solve this problem.
I've had serveral Perl scripts that I had written in the past that I
have had to convert to VBScript. Usually no problems.
Today, I was doing some converting, and ran across this code in Perl:
@union = @intersection = @difference = ();
%count = ();
foreach $element (@added, @subList) { $count{$element}++ }
foreach $element (keys %count) {
push @union, $element;
push @{ $count{$element} > 1 ? \@intersection : \@difference },
$element;
}
Basically, we're taking two arrays (@added & @subList) and comparing
them to see what different elemetns @added has vs. @subList and
putting the results into @intersection.
Anyone know how to do this in VBScript?
Thanks in advance,
Jeremy
I'm a long time Perl programmer who recently learned VBScript and am
pretty familiar with VBScript, but not enough to solve this problem.
I've had serveral Perl scripts that I had written in the past that I
have had to convert to VBScript. Usually no problems.
Today, I was doing some converting, and ran across this code in Perl:
@union = @intersection = @difference = ();
%count = ();
foreach $element (@added, @subList) { $count{$element}++ }
foreach $element (keys %count) {
push @union, $element;
push @{ $count{$element} > 1 ? \@intersection : \@difference },
$element;
}
Basically, we're taking two arrays (@added & @subList) and comparing
them to see what different elemetns @added has vs. @subList and
putting the results into @intersection.
Anyone know how to do this in VBScript?
Thanks in advance,
Jeremy