Bubble sorting with Perl

#!/usr/bin/perl use strict; use Data::Dumper; sub swap{      @_[ 0, 1 ] = @_[ 1, 0 ]; } sub bsort{      my (@a) = @_;      for my $j (0 .. $#a){            for my $i (0 .. $#a – 1 – $j ){         … Read more