depends on context.
in the perldoc pages (ie perldoc perlfuncs) you will see for sort:
     sort SUBNAME LIST
     sort BLOCK LIST
     sort LIST

and sometimes you see EXPR

BLOCK usually has { } around it, but for sort you have an expression
followed by a comma to be shorter written.
EXPR doesn't, it just test for true or false most of the time.

PS. Please excuse me while I fall asleep. Everything I have written is in a
semi-dream-like state.

> -----Original Message-----
> From: Bryan R Harris [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 10, 2002 12:54 PM
> To: [EMAIL PROTECTED]
> Subject: Re: 1 more ?
> 
> 
> 
> > I'm assuming you meant in the context of dereferencing only.  Braces
> aren't
> > really required, unless you want Perl to do what you want it to.  :)
> 
> 
> Thanks to all, the referencing part is very clear to me now.
> 
> What about other uses, though?  I notice the sort command 
> sometimes puts
> braces around operations on $a and $b.  What do the braces do 
> there?  Does
> the sort command expect braces, or do they symbolize something more
> universal?  (I love the little [ @array ] trick, do braces do 
> something
> similar?)
> 
> TIA.
> 
> - B
> 
> 
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to