Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: Re: Re: how do I sort on two fields in a hash table?

by larryl (Monk)
on Mar 16, 2001 at 01:16 UTC ( [id://64786]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: how do I sort on two fields in a hash table?
in thread how do I sort on two fields in a hash table?

They do the same thing, it's all about operator precedence. || has higher precedence than or, and other things in between. The perlop manpage has about everything you need to know. To steal an example from perlop, the following:
    unlink "alpha", "beta", "gamma" or gripe(), next LINE;
works like:
    unlink("alpha", "beta", "gamma") or (gripe(), next LINE);
but it would break using ||, because it would work like:
    unlink("alpha", "beta", ("gamma" || gripe()), next LINE;

Log In?
Username:
Password:

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

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

    No recent polls found