Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Generate Dynamic Sort Expressions

by Aristotle (Chancellor)
on Nov 28, 2002 at 14:49 UTC ( [id://216310]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Carp;
    use vars qw(%data);
    
    ...
            $r
        } keys %data;
    }
    
  2. or download this
    init_comparison_for string => qw(fname lname email address position);
    init_comparison_for numeric => qw(id salary zip);
    
    print $employee{$_}->{fname}, " ", $employee{$_}->{lname}
        for sortedkeys %employee, qw(r-salary id);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (9)
As of 2024-03-28 09:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found