in reply to Re^2: Replace $a with $b if $a ne $bin thread Replace $a with $b if $a ne $b
my $a = 1; print((sort { $b cmp $a } qw( a b c z y x )), $/); print($a, $/); # Prints "1" [download]