Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    
    $, = "\n";
    print sort caseless ('a','s','d','f');
    
  2. or download this
    use Exporter;
    package Sorts;
    ...
    @Sorts::EXPORT = qw(caseless);
    
    sub caseless { lc $a cmp lc $b }
    
  3. or download this
    use Exporter;
    package Sorts;
    ...
    @Sorts::EXPORT = qw(caseless $a $b);
    
    sub caseless { lc $a cmp lc $b }
    
  4. or download this
    use Exporter;
    package Sorts;
    ...
    @Sorts::EXPORT = qw(caseless *a *b);
    
    sub caseless { lc $a cmp lc $b }
    
  5. or download this
    a
    s
    d
    f
    
  6. or download this
    a
    d
    f
    s