Help for this page

Select Code to Download


  1. or download this
    pryrt@debianvm:~$ perl -Mlist::utils -le 'print "OK"'
    Can't locate list/utils.pm in @INC (you may need to install the list::
    +utils module) (@INC contains: ./blib/lib /home/pryrt/perl5/perlbrew/p
    +erls/perl-5.20.3/lib/site_perl/5.20.3/i686-linux /home/pryrt/perl5/pe
    +rlbrew/perls/perl-5.20.3/lib/site_perl/5.20.3 /home/pryrt/perl5/perlb
    +rew/perls/perl-5.20.3/lib/5.20.3/i686-linux /home/pryrt/perl5/perlbre
    +w/perls/perl-5.20.3/lib/5.20.3 .).
    ...
    
    Data for 2015-09-12
    List::Util was first released with perl v5.7.3
    
  2. or download this
    #!/usr/bin/env perl
    use warnings;
    ...
    my @shuffled = shuffle(@trips);
    print "shuffled: (@shuffled)\n"; 
    __END__
    
  3. or download this
    __RESULTS__
    enter sequence and signal end with enter followed by ctrl d
    ...
    sequence inserted : GATTACCAT
    unshuffled: (GAT, TAC, CAT, , , , )
    shuffled: (, , GAT, TAC, CAT, , )