in reply to Re: Simple array sorting
in thread Simple array sorting
#!/usr/bin/perl use strict; use warnings; my @a = 'a'..'z'; my $b = $a[19]; &blah(); srand('5' ^ my $blah1); my @c=split(/ */, "abcdefghijklmnopqrstuvwxyz"); my $a = $c[20]; for(my $i = 0) { @c = $c[20];#!/\^s/[int(rand(20))]/\^s/; print "Good job!\n\nCode Letter: @c"; } sub blah { my $blah = "a c e g i k m o q s u w y"; my @blah = split(/ /, $blah); my $i = -1; foreach $blah(@blah) { $i++; delete $blah[$i] unless $i eq 2 || $i eq 4 || $i eq 6; } $blah = join('', $b,$blah[4],$blah[6],$blah[2]); @blah = $blah; $blah1 = @blah; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Simple array sorting
by djantzen (Priest) on Jan 10, 2003 at 02:17 UTC |