Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > <> the Diamond Operator

Reply
Thread Tools

<> the Diamond Operator

 
 
maryellen sniffen
Guest
Posts: n/a
 
      12-31-2004
I'm new and sorry about this - but what should I be putting inside this
"Diamond Operator"? The FileHandle? the open file ?
Thank you.



 
Reply With Quote
 
 
 
 
Paul Lalli
Guest
Posts: n/a
 
      12-31-2004
"maryellen sniffen" <> wrote in message
news:kMcBd.18825$EL5.1055@trndny09...
> I'm new and sorry about this - but what should I be putting inside

this
> "Diamond Operator"? The FileHandle? the open file ?


An apology is a poor substitute for actually reading the documentation
yourself, rather than asking thousands of people to read it to you.

perldoc perlop
(Search for "I/O Operators")

See also:
perldoc -f open
perldoc -f readline

Paul Lalli

 
Reply With Quote
 
 
 
 
Tad McClellan
Guest
Posts: n/a
 
      12-31-2004
maryellen sniffen <> wrote:
> I'm new and sorry about this - but what should I be putting inside this
> "Diamond Operator"?



Nothing, else it will no longer be the Diamond Operator!

The diamond operator is a special case of the Input Operator,
described in:

perldoc perlop


> The FileHandle?



If you put a filehandle in the operator then it is not
the diamond operator special case, it is merely the general
case input operator.


> the open file ?



Eh?

I cannot imagine what "open file" might mean here...


--
Tad McClellan SGML consulting
Perl programming
Fort Worth, Texas
 
Reply With Quote
 
Anno Siegel
Guest
Posts: n/a
 
      12-31-2004
maryellen sniffen <> wrote in comp.lang.perl.misc:
> I'm new and sorry about this - but what should I be putting inside this
> "Diamond Operator"? The FileHandle? the open file ?


What would "the open file" be in a Perl program? For all intents and
purposes, the file handle *is* the open file.

Anno
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
diamond operator Roedy Green Java 25 05-06-2012 12:07 AM
Odd behavior of operator=() in diamond inheritance situation Juha Nieminen C++ 1 03-02-2009 12:00 PM
translate Perl diamond operator to Ruby Chad Perrin Ruby 11 04-16-2007 07:03 PM
MSI P4N Diamond NF4-SLI Intel Edition Motherboard Review Silverstrand Front Page News 0 09-14-2005 08:48 PM
binmode and the diamond operator J. Romano Perl Misc 6 11-17-2003 02:47 AM



Advertisments