Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Custom Sort An AoA

by davido (Cardinal)
on Apr 01, 2014 at 18:30 UTC ( [id://1080621]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Test::More tests => 1;
    
    ...
    diag "@{$_}\n" for @sorted;
    
    is_deeply( \@sorted, \@wanted, 'Sorted array matches expectation.' );
    
  2. or download this
    1..1
    # one
    ...
    # zzz def ghi
    # blah asdf foo bar
    ok 1 - Sorted array matches expectation.
    
  3. or download this
    use Test::More tests => 1;
    
    ...
    diag "@{$_}\n" for @sorted;
    
    is_deeply( \@sorted, \@wanted, 'Sorted array matches expectation.' );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1080621]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-20 00:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found